| java.lang.Object org.bouncycastle.asn1.ASN1Encodable org.bouncycastle.asn1.x509.ObjectDigestInfo
ObjectDigestInfo | public class ObjectDigestInfo extends ASN1Encodable (Code) | | 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
}
|
otherObjectDigest | final public static int otherObjectDigest(Code) | | An other object is hashed.
|
publicKey | final public static int publicKey(Code) | | The public key is hashed.
|
publicKeyCert | final public static int publicKeyCert(Code) | | The public key certificate is hashed.
|
ObjectDigestInfo | public ObjectDigestInfo(int digestedObjectType, String otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, byte[] objectDigest)(Code) | | Constructor from given details.
If digestedObjectType is not
ObjectDigestInfo.publicKeyCert or
ObjectDigestInfo.publicKey otherObjectTypeID must be given,
otherwise it is ignored.
Parameters: digestedObjectType - The digest object type. Parameters: otherObjectTypeID - The object type ID forotherObjectDigest . Parameters: digestAlgorithm - The algorithm identifier for the hash. Parameters: objectDigest - The hash value. |
toASN1Object | public DERObject toASN1Object()(Code) | | Produce an object suitable for an ASN1OutputStream.
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
}
|
|
|