Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class RecipientKeyIdentifier

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1GeneralizedTime, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERSequence

RFC 5652: Content encryption key delivery mechanisms.

RecipientKeyIdentifier ::= SEQUENCE {
    subjectKeyIdentifier SubjectKeyIdentifier,
    date GeneralizedTime OPTIONAL,
    other OtherKeyAttribute OPTIONAL 
}

SubjectKeyIdentifier ::= OCTET STRING

Field Summary

Modifier and TypeField and Description
private ASN1GeneralizedTime
private OtherKeyAttribute
private ASN1OctetString

Constructor Summary

AccessConstructor and Description
public
public
RecipientKeyIdentifier(byte[] subjectKeyIdentifier, ASN1GeneralizedTime date, OtherKeyAttribute other)

public
RecipientKeyIdentifier(byte[] subjectKeyIdentifier)

private

Method Summary

Modifier and TypeMethod and Description
public ASN1GeneralizedTime
public static RecipientKeyIdentifier
getInstance(ASN1TaggedObject
the tagged object holding the object we want.
ato
,
boolean
true if the object is meant to be explicitly tagged false otherwise.
isExplicit
)

Return a RecipientKeyIdentifier object from a tagged object.

public static RecipientKeyIdentifier
getInstance(Object
the object we want converted.
obj
)

Return a RecipientKeyIdentifier object from the given object.

public OtherKeyAttribute
public ASN1OctetString
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

dateback to summary
private ASN1GeneralizedTime date
otherback to summary
private OtherKeyAttribute other
subjectKeyIdentifierback to summary
private ASN1OctetString subjectKeyIdentifier

Constructor Detail

RecipientKeyIdentifierback to summary
public RecipientKeyIdentifier(ASN1OctetString subjectKeyIdentifier, ASN1GeneralizedTime date, OtherKeyAttribute other)
RecipientKeyIdentifierback to summary
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier, ASN1GeneralizedTime date, OtherKeyAttribute other)
RecipientKeyIdentifierback to summary
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier)
RecipientKeyIdentifierback to summary
private RecipientKeyIdentifier(ASN1Sequence seq)

Method Detail

getDateback to summary
public ASN1GeneralizedTime getDate()
getInstanceback to summary
public static RecipientKeyIdentifier getInstance(ASN1TaggedObject ato, boolean isExplicit)

Return a RecipientKeyIdentifier object from a tagged object.

Parameters
ato:ASN1TaggedObject

the tagged object holding the object we want.

isExplicit:boolean

true if the object is meant to be explicitly tagged false otherwise.

Exceptions
IllegalArgumentException:
if the object held by the tagged object cannot be converted.
getInstanceback to summary
public static RecipientKeyIdentifier getInstance(Object obj)

Return a RecipientKeyIdentifier object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getOtherKeyAttributeback to summary
public OtherKeyAttribute getOtherKeyAttribute()
getSubjectKeyIdentifierback to summary
public ASN1OctetString getSubjectKeyIdentifier()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.