|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.ac.ObjectDigestInfo
public class ObjectDigestInfo
This class represents the ObjectDigestInfo ASN.1 construct.
Field Summary | |
---|---|
protected java.lang.String |
digestAlgorithm
|
protected int |
digestedObjectType
|
protected BIT_STRING |
objectDigest
|
static int |
OTHER_OBJECT_TYPES
This constant defines the context tag for OTHER_OBJECT_TYPES objects. |
protected java.lang.String |
otherObjectTypeID
|
static int |
PUBLIC_KEY
This constant defines the context tag for PUBLIC_KEY objects. |
static int |
PUBLIC_KEY_CERT
This constant defines the context tag for PUBLIC_KEY_CERT objects. |
Constructor Summary | |
---|---|
protected |
ObjectDigestInfo()
|
|
ObjectDigestInfo(int digestedObjectType,
java.lang.String otherObjectTypeID,
java.lang.String digestAlgorithm,
BIT_STRING objectDigest)
This constructor is used to construct an ObjectDigestInfo object out of the specified components. |
|
ObjectDigestInfo(ObjectDigestInfo odi)
This constructor copies a given ObjectDigestInfo. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
void |
decode(ASN1Object ao)
This method decodes a given ASN1Object and sets the contents from it. |
java.lang.String |
getDigestAlgorithmID()
Returns the OID of the digest algorithm in the dotted form. |
BIT_STRING |
getObjectDigest()
Returns the Bit String of the digest of the object. |
int |
getObjectType()
Returns Digested Object Type. |
java.lang.String |
getOtherObjectType()
Returns the OID of the digested object Type, if it is not a public key or PKC; in the latter case it is null. |
void |
setDigestAlgorithmID(java.lang.String oid)
Sets the OID of the digest algorithm in the dotted form. |
void |
setObjectDigest(BIT_STRING objectDigest)
Returns the Bit String of the digest of the object. |
void |
setObjectType(int objectType)
Sets Digested Object Type. |
void |
setOtherObjectType(java.lang.String oid)
Sets the OID of the digested object Type, if it is not a public key or PKC. |
ASN1Object |
toASN1Object()
This method returns the ASN1Object of this ObjectDigestInfo. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String indent)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PUBLIC_KEY
public static final int PUBLIC_KEY_CERT
public static final int OTHER_OBJECT_TYPES
protected int digestedObjectType
protected java.lang.String otherObjectTypeID
protected java.lang.String digestAlgorithm
protected BIT_STRING objectDigest
Constructor Detail |
---|
protected ObjectDigestInfo()
public ObjectDigestInfo(int digestedObjectType, java.lang.String otherObjectTypeID, java.lang.String digestAlgorithm, BIT_STRING objectDigest)
digestedObjectType
- can be one of the values: PUBLIC_KEY,
PUBLIC_KEY_CERT or OTHER_OBJECT_TYPESotherObjectTypeID
- must contain the value of the ObjectID if the
digestedObjectType is OTHER_OBJECT_TYPESdigestAlgorithm
- must be the dotted form of the OID of the algorithmobjectDigest
- is the bit string of the object digest valuepublic ObjectDigestInfo(ObjectDigestInfo odi)
odi
- - the ObjectDigestInfo to copyMethod Detail |
---|
public int getObjectType()
public void setObjectType(int objectType)
You have to set the type of the object, unless you did so by passing a correct value to the constructor.
public java.lang.String getOtherObjectType()
public void setOtherObjectType(java.lang.String oid)
public java.lang.String getDigestAlgorithmID()
public void setDigestAlgorithmID(java.lang.String oid)
public BIT_STRING getObjectDigest()
public void setObjectDigest(BIT_STRING objectDigest)
public ASN1Object toASN1Object() throws CodingException
CodingException
public void decode(ASN1Object ao) throws CodingException
ao
- - the ASN1Object to decode
CodingException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String indent)
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |