FileDocCategorySizeDatePackage
ObjectDigestInfo.javaAPI DocAzureus 3.0.3.41912Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1.x509

ObjectDigestInfo

public class ObjectDigestInfo extends Object implements org.bouncycastle.asn1.DEREncodable

Fields Summary
org.bouncycastle.asn1.DEREnumerated
digestedObjectType
org.bouncycastle.asn1.DERObjectIdentifier
otherObjectTypeID
AlgorithmIdentifier
digestAlgorithm
org.bouncycastle.asn1.DERBitString
objectDigest
Constructors Summary
Methods Summary
public org.bouncycastle.asn1.DERObjectgetDERObject()
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
}

        ASN1EncodableVector  v = new ASN1EncodableVector();

        v.add(digestedObjectType);

        if (otherObjectTypeID != null)
        {
            v.add(otherObjectTypeID);
        }

        v.add(digestAlgorithm);
        v.add(objectDigest);

        return new DERSequence(v);
    
public AlgorithmIdentifiergetDigestAlgorithm()

        return digestAlgorithm;
    
public org.bouncycastle.asn1.DEREnumeratedgetDigestedObjectType()

        return digestedObjectType;
    
public org.bouncycastle.asn1.DERBitStringgetObjectDigest()

        return objectDigest;
    
public org.bouncycastle.asn1.DERObjectIdentifiergetOtherObjectTypeID()

        return otherObjectTypeID;