org.bouncycastle.asn1.cms

Class RecipientKeyIdentifier

public class RecipientKeyIdentifier extends ASN1Encodable

Constructor Summary
RecipientKeyIdentifier(ASN1OctetString subjectKeyIdentifier, DERGeneralizedTime date, OtherKeyAttribute other)
RecipientKeyIdentifier(ASN1Sequence seq)
Method Summary
DERGeneralizedTimegetDate()
static RecipientKeyIdentifiergetInstance(ASN1TaggedObject _ato, boolean _explicit)
return a RecipientKeyIdentifier object from a tagged object.
static RecipientKeyIdentifiergetInstance(Object _obj)
return a RecipientKeyIdentifier object from the given object.
OtherKeyAttributegetOtherKeyAttribute()
ASN1OctetStringgetSubjectKeyIdentifier()
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

RecipientKeyIdentifier

public RecipientKeyIdentifier(ASN1OctetString subjectKeyIdentifier, DERGeneralizedTime date, OtherKeyAttribute other)

RecipientKeyIdentifier

public RecipientKeyIdentifier(ASN1Sequence seq)

Method Detail

getDate

public DERGeneralizedTime getDate()

getInstance

public static RecipientKeyIdentifier getInstance(ASN1TaggedObject _ato, boolean _explicit)
return a RecipientKeyIdentifier object from a tagged object.

Parameters: _ato the tagged object holding the object we want. _explicit true if the object is meant to be explicitly tagged false otherwise.

Throws: IllegalArgumentException if the object held by the tagged object cannot be converted.

getInstance

public static RecipientKeyIdentifier getInstance(Object _obj)
return a RecipientKeyIdentifier object from the given object.

Parameters: _obj the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

getOtherKeyAttribute

public OtherKeyAttribute getOtherKeyAttribute()

getSubjectKeyIdentifier

public ASN1OctetString getSubjectKeyIdentifier()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 RecipientKeyIdentifier ::= SEQUENCE {
     subjectKeyIdentifier SubjectKeyIdentifier,
     date GeneralizedTime OPTIONAL,
     other OtherKeyAttribute OPTIONAL 
 }

 SubjectKeyIdentifier ::= OCTET STRING