com.sun.jaw.impl.common
Class ClassDefinition

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

public class ClassDefinition
extends java.lang.Object
implements java.io.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.

See Also:
Serialized Form

Constructor Summary
ClassDefinition(java.lang.String className, java.lang.String classPath, byte[] classImage)
          Constructs a class definition for the given class.
ClassDefinition(java.lang.String className, java.lang.String classPath, byte[] classImage, byte[] classDigest, byte[] digestSignature, byte[] certificate)
          Constructs a secure class definition for the given class.
 
Method Summary
 byte[] getCertificate()
          Returns the certificate used to sign this class.
 byte[] getClassDigest()
          Returns the message digest of the bytecodes of the class.
 byte[] getClassImage()
          Returns the bytecodes that define this class.
 java.lang.String getClassName()
          Returns the name of the class that this object encapsulates.
 java.lang.String getClassPath()
          Returns the CLASSPATH where the class bytecodes were located.
 java.lang.String getClassVersion()
          Returns the class version string.
 byte[] getDigestSignature()
          Returns the signature of the message digest of the bytecodes of the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDefinition

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

ClassDefinition

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

getClassName

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

getClassPath

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

getClassImage

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

getClassDigest

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

getDigestSignature

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

getCertificate

public byte[] getCertificate()
Returns the certificate used to sign this class.

getClassVersion

public java.lang.String getClassVersion()
Returns the class version string.