org.bouncycastle.asn1.cms

Class RecipientIdentifier

public class RecipientIdentifier extends ASN1Encodable

Constructor Summary
RecipientIdentifier(IssuerAndSerialNumber id)
RecipientIdentifier(ASN1OctetString id)
RecipientIdentifier(DERObject id)
Method Summary
DEREncodablegetId()
static RecipientIdentifiergetInstance(Object o)
return a RecipientIdentifier object from the given object.
booleanisTagged()
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

RecipientIdentifier

public RecipientIdentifier(IssuerAndSerialNumber id)

RecipientIdentifier

public RecipientIdentifier(ASN1OctetString id)

RecipientIdentifier

public RecipientIdentifier(DERObject id)

Method Detail

getId

public DEREncodable getId()

getInstance

public static RecipientIdentifier getInstance(Object o)
return a RecipientIdentifier object from the given object.

Parameters: o the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

isTagged

public boolean isTagged()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 RecipientIdentifier ::= CHOICE {
     issuerAndSerialNumber IssuerAndSerialNumber,
     subjectKeyIdentifier [0] SubjectKeyIdentifier 
 }

 SubjectKeyIdentifier ::= OCTET STRING