org.bouncycastle.asn1.cms

Class RecipientIdentifier

Implemented Interfaces:
DEREncodable

public class RecipientIdentifier
extends ASN1Encodable

Constructor Summary

RecipientIdentifier(ASN1OctetString id)
RecipientIdentifier(DERObject id)
RecipientIdentifier(IssuerAndSerialNumber id)

Method Summary

DEREncodable
getId()
static RecipientIdentifier
getInstance(Object o)
return a RecipientIdentifier object from the given object.
boolean
isTagged()
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Constructor Details

RecipientIdentifier

public RecipientIdentifier(ASN1OctetString id)


RecipientIdentifier

public RecipientIdentifier(DERObject id)


RecipientIdentifier

public RecipientIdentifier(IssuerAndSerialNumber id)

Method Details

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.


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
 
Overrides:
toASN1Object in interface ASN1Encodable