|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.ObjectDigestInfo
ObjectDigestInfo ASN.1 structure used in v2 attribute certificates. ObjectDigestInfo ::= SEQUENCE { digestedObjectType ENUMERATED { publicKey (0), publicKeyCert (1), otherObjectTypes (2) }, -- otherObjectTypes MUST NOT -- be used in this profile otherObjectTypeID OBJECT IDENTIFIER OPTIONAL, digestAlgorithm AlgorithmIdentifier, objectDigest BIT STRING }
Field Summary | |
static int |
otherObjectDigest
An other object is hashed. |
static int |
publicKey
The public key is hashed. |
static int |
publicKeyCert
The public key certificate is hashed. |
Constructor Summary | |
ObjectDigestInfo(int digestedObjectType,
ASN1ObjectIdentifier otherObjectTypeID,
AlgorithmIdentifier digestAlgorithm,
byte[] objectDigest)
Constructor from given details. |
Method Summary | |
AlgorithmIdentifier |
getDigestAlgorithm()
|
ASN1Enumerated |
getDigestedObjectType()
|
static ObjectDigestInfo |
getInstance(ASN1TaggedObject obj,
boolean explicit)
|
static ObjectDigestInfo |
getInstance(java.lang.Object obj)
|
ASN1BitString |
getObjectDigest()
|
ASN1ObjectIdentifier |
getOtherObjectTypeID()
|
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream. |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int publicKey
public static final int publicKeyCert
public static final int otherObjectDigest
Constructor Detail |
public ObjectDigestInfo(int digestedObjectType, ASN1ObjectIdentifier otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, byte[] objectDigest)
If digestedObjectType is not publicKeyCert
or
publicKey
otherObjectTypeID must be given,
otherwise it is ignored.
digestedObjectType
- The digest object type.otherObjectTypeID
- The object type ID for
otherObjectDigest.digestAlgorithm
- The algorithm identifier for the hash.objectDigest
- The hash value.Method Detail |
public static ObjectDigestInfo getInstance(java.lang.Object obj)
public static ObjectDigestInfo getInstance(ASN1TaggedObject obj, boolean explicit)
public ASN1Enumerated getDigestedObjectType()
public ASN1ObjectIdentifier getOtherObjectTypeID()
public AlgorithmIdentifier getDigestAlgorithm()
public ASN1BitString getObjectDigest()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |