public class

ObjectDigestInfo

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.x509.ObjectDigestInfo

Class Overview

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
    }
   
 

Summary

Constants
int otherObjectDigest An other object is hashed.
int publicKey The public key is hashed.
int publicKeyCert The public key certificate is hashed.
[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
ObjectDigestInfo(int digestedObjectType, String otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, byte[] objectDigest)
Constructor from given details.
Public Methods
AlgorithmIdentifier getDigestAlgorithm()
DEREnumerated getDigestedObjectType()
static ObjectDigestInfo getInstance(ASN1TaggedObject obj, boolean explicit)
static ObjectDigestInfo getInstance(Object obj)
DERBitString getObjectDigest()
DERObjectIdentifier getOtherObjectTypeID()
DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Constants

public static final int otherObjectDigest

An other object is hashed.

Constant Value: 2 (0x00000002)

public static final int publicKey

The public key is hashed.

Constant Value: 0 (0x00000000)

public static final int publicKeyCert

The public key certificate is hashed.

Constant Value: 1 (0x00000001)

Public Constructors

public ObjectDigestInfo (int digestedObjectType, String otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, byte[] objectDigest)

Constructor from given details.

If digestedObjectType is not publicKeyCert or publicKey otherObjectTypeID must be given, otherwise it is ignored.

Parameters
digestedObjectType The digest object type.
otherObjectTypeID The object type ID for otherObjectDigest.
digestAlgorithm The algorithm identifier for the hash.
objectDigest The hash value.

Public Methods

public AlgorithmIdentifier getDigestAlgorithm ()

public DEREnumerated getDigestedObjectType ()

public static ObjectDigestInfo getInstance (ASN1TaggedObject obj, boolean explicit)

public static ObjectDigestInfo getInstance (Object obj)

public DERBitString getObjectDigest ()

public DERObjectIdentifier getOtherObjectTypeID ()

public DERObject toASN1Object ()

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
    }