org.bouncycastle.asn1.cms

Class RecipientKeyIdentifier

Implemented Interfaces:
DEREncodable

public class RecipientKeyIdentifier
extends ASN1Encodable

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

RecipientKeyIdentifier(ASN1OctetString subjectKeyIdentifier, DERGeneralizedTime date, OtherKeyAttribute other)
RecipientKeyIdentifier(ASN1Sequence seq)

Method Summary

DERGeneralizedTime
getDate()
static RecipientKeyIdentifier
getInstance(Object _obj)
return a RecipientKeyIdentifier object from the given object.
static RecipientKeyIdentifier
getInstance(ASN1TaggedObject _ato, boolean _explicit)
return a RecipientKeyIdentifier object from a tagged object.
OtherKeyAttribute
getOtherKeyAttribute()
ASN1OctetString
getSubjectKeyIdentifier()
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Constructor Details

RecipientKeyIdentifier

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

RecipientKeyIdentifier

public RecipientKeyIdentifier(ASN1Sequence seq)

Method Details

getDate

public DERGeneralizedTime getDate()

getInstance

public static RecipientKeyIdentifier getInstance(Object _obj)
return a RecipientKeyIdentifier object from the given object.
Parameters:
_obj - the object we want converted.

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.

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