|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectissrg.ac.ObjectDigestInfo
public class ObjectDigestInfo
This class represents the ObjectDigestInfo ASN.1 construct.
Field Summary | |
---|---|
protected java.lang.String |
digestAlgorithm
|
protected int |
digestedObjectType
|
protected iaik.asn1.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(iaik.asn1.ASN1Object ao)
This constructor builds ObjectDigestInfo from a given ASN1Object. |
|
ObjectDigestInfo(int digestedObjectType,
java.lang.String otherObjectTypeID,
java.lang.String digestAlgorithm,
iaik.asn1.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(iaik.asn1.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. |
iaik.asn1.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(iaik.asn1.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. |
iaik.asn1.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 iaik.asn1.BIT_STRING objectDigest
Constructor Detail |
---|
protected ObjectDigestInfo()
public ObjectDigestInfo(int digestedObjectType, java.lang.String otherObjectTypeID, java.lang.String digestAlgorithm, iaik.asn1.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 copypublic ObjectDigestInfo(iaik.asn1.ASN1Object ao) throws iaik.asn1.CodingException
ao
- - the ASN1Object with the contents of ObjectDigestInfo
iaik.asn1.CodingException
Method 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 iaik.asn1.BIT_STRING getObjectDigest()
public void setObjectDigest(iaik.asn1.BIT_STRING objectDigest)
public iaik.asn1.ASN1Object toASN1Object() throws iaik.asn1.CodingException
toASN1Object
in interface iaik.asn1.ASN1Type
iaik.asn1.CodingException
public void decode(iaik.asn1.ASN1Object ao) throws iaik.asn1.CodingException
decode
in interface iaik.asn1.ASN1Type
ao
- - the ASN1Object to decode
iaik.asn1.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 |