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

public Class RecipientInfo

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

RFC 5652: Content encryption key delivery mechanisms.

RecipientInfo ::= CHOICE {
    ktri      KeyTransRecipientInfo,
    kari  [1] KeyAgreeRecipientInfo,
    kekri [2] KEKRecipientInfo,
    pwri  [3] PasswordRecipientInfo,
    ori   [4] OtherRecipientInfo }

Field Summary

Modifier and TypeField and Description
pack-priv ASN1Encodable

Constructor Summary

AccessConstructor and Description
public
public
public
public
public
public

Method Summary

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

Return a RecipientInfo object from the given object.

private KEKRecipientInfo
public ASN1Integer
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:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

infoback to summary
pack-priv ASN1Encodable info

Constructor Detail

RecipientInfoback to summary
public RecipientInfo(KeyTransRecipientInfo info)
RecipientInfoback to summary
public RecipientInfo(KeyAgreeRecipientInfo info)
RecipientInfoback to summary
public RecipientInfo(KEKRecipientInfo info)
RecipientInfoback to summary
public RecipientInfo(PasswordRecipientInfo info)
RecipientInfoback to summary
public RecipientInfo(OtherRecipientInfo info)
RecipientInfoback to summary
public RecipientInfo(ASN1Primitive info)

Method Detail

getInfoback to summary
public ASN1Encodable getInfo()
getInstanceback to summary
public static RecipientInfo getInstance(Object o)

Return a RecipientInfo object from the given object.

Accepted inputs:

Parameters
o:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getKEKInfoback to summary
private KEKRecipientInfo getKEKInfo(ASN1TaggedObject o)
getVersionback to summary
public ASN1Integer getVersion()
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.