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

public Class RecipientIdentifier

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
org.bouncycastle.asn1.ASN1Choice, .ASN1Encodable, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1TaggedObject, .DERTaggedObject

RFC 5652: Content encryption key delivery mechanisms.
RecipientIdentifier ::= CHOICE {
    issuerAndSerialNumber IssuerAndSerialNumber,
    subjectKeyIdentifier [0] SubjectKeyIdentifier 
}

SubjectKeyIdentifier ::= OCTET STRING

Field Summary

Modifier and TypeField and Description
private ASN1Encodable

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public ASN1Encodable
public static RecipientIdentifier
getInstance(Object
the object we want converted.
o
)

Return a RecipientIdentifier object from the given object.

public boolean
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

idback to summary
private ASN1Encodable id

Constructor Detail

RecipientIdentifierback to summary
public RecipientIdentifier(IssuerAndSerialNumber id)
RecipientIdentifierback to summary
public RecipientIdentifier(ASN1OctetString id)
RecipientIdentifierback to summary
public RecipientIdentifier(ASN1Primitive id)

Method Detail

getIdback to summary
public ASN1Encodable getId()
getInstanceback to summary
public static RecipientIdentifier getInstance(Object o)

Return a RecipientIdentifier object from the given object.

Accepted inputs:

Parameters
o:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
isTaggedback to summary
public boolean isTagged()
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.