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

public Class OtherRecipientInfo

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence

RFC 5652: Content encryption key delivery mechanisms.
OtherRecipientInfo ::= SEQUENCE {
   oriType OBJECT IDENTIFIER,
   oriValue ANY DEFINED BY oriType }

Field Summary

Modifier and TypeField and Description
private ASN1ObjectIdentifier
private ASN1Encodable

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

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

Return a OtherRecipientInfo object from a tagged object.

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

Return a OtherRecipientInfo object from the given object.

public ASN1ObjectIdentifier
public ASN1Encodable
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

oriTypeback to summary
private ASN1ObjectIdentifier oriType
oriValueback to summary
private ASN1Encodable oriValue

Constructor Detail

OtherRecipientInfoback to summary
public OtherRecipientInfo(ASN1ObjectIdentifier oriType, ASN1Encodable oriValue)
OtherRecipientInfoback to summary
private OtherRecipientInfo(ASN1Sequence seq)

Method Detail

getInstanceback to summary
public static OtherRecipientInfo getInstance(ASN1TaggedObject obj, boolean explicit)

Return a OtherRecipientInfo object from a tagged object.

Parameters
obj:ASN1TaggedObject

the tagged object holding the object we want.

explicit: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 OtherRecipientInfo getInstance(Object obj)

Return a OtherRecipientInfo object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getTypeback to summary
public ASN1ObjectIdentifier getType()
getValueback to summary
public ASN1Encodable getValue()
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.