All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.impl.common.ClassDefinition

java.lang.Object
   |
   +----com.sun.jaw.impl.common.ClassDefinition

public class ClassDefinition
extends Object
implements Serializable
ClassDefinition is used to encapsulate the bytes of the Java class. Eventually this class will have the means to also validate and verify that the class has come from a trusted source and the class has not been changed.


Constructor Index

 o ClassDefinition(String, String, byte[])
Constructs a class definition for the given class.
 o ClassDefinition(String, String, byte[], byte[], byte[], Certificate)
Constructs a secure class definition for the given class.

Method Index

 o getCertificate()
Returns the certificate used to sign this class.
 o getClassDigest()
Returns the message digest of the bytecodes of the class.
 o getClassImage()
Returns the bytecodes that define this class.
 o getClassName()
Returns the name of the class that this object encapsulates.
 o getClassPath()
Returns the CLASSPATH where the class bytecodes were located.
 o getClassVersion()
Returns the class version string.
 o getDigestSignature()
Returns the signature of the message digest of the bytecodes of the class.

Constructors

 o ClassDefinition
 public ClassDefinition(String className,
                        String classPath,
                        byte classImage[])
Constructs a class definition for the given class.

 o ClassDefinition
 public ClassDefinition(String className,
                        String classPath,
                        byte classImage[],
                        byte classDigest[],
                        byte digestSignature[],
                        Certificate certificate)
Constructs a secure class definition for the given class.

Methods

 o getClassName
 public String getClassName()
Returns the name of the class that this object encapsulates.

 o getClassPath
 public String getClassPath()
Returns the CLASSPATH where the class bytecodes were located.

 o getClassImage
 public byte[] getClassImage()
Returns the bytecodes that define this class.

 o getClassDigest
 public byte[] getClassDigest()
Returns the message digest of the bytecodes of the class.

 o getDigestSignature
 public byte[] getDigestSignature()
Returns the signature of the message digest of the bytecodes of the class.

 o getCertificate
 public Certificate getCertificate()
Returns the certificate used to sign this class.

 o getClassVersion
 public String getClassVersion()
Returns the class version string.


All Packages  Class Hierarchy  This Package  Previous  Next  Index