ContentIdentifier.javaAPI DocAndroid 1.5 API1596Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.ess


public class ContentIdentifier extends org.bouncycastle.asn1.ASN1Encodable

Fields Summary
Constructors Summary
public ContentIdentifier(org.bouncycastle.asn1.ASN1OctetString value)
Create from OCTET STRING whose octets represent the identifier.

        this.value = value;
public ContentIdentifier(byte[] value)
Create from byte array representing the identifier.

        this(new DEROctetString(value));
Methods Summary
public static org.bouncycastle.asn1.ess.ContentIdentifiergetInstance(java.lang.Object o)

        if (o == null || o instanceof ContentIdentifier)
            return (ContentIdentifier) o;
        else if (o instanceof ASN1OctetString)
            return new ContentIdentifier((ASN1OctetString) o);

        throw new IllegalArgumentException(
                "unknown object in 'ContentIdentifier' factory : "
                        + o.getClass().getName() + ".");
public org.bouncycastle.asn1.ASN1OctetStringgetValue()

        return value;
public org.bouncycastle.asn1.DERObjecttoASN1Object()
The definition of ContentIdentifier is
ContentIdentifier ::= OCTET STRING
id-aa-contentIdentifier OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 7 }

        return value;