org.bouncycastle.asn1.cms

Class OtherRecipientInfo

public class OtherRecipientInfo extends ASN1Encodable

Constructor Summary
OtherRecipientInfo(DERObjectIdentifier oriType, DEREncodable oriValue)
OtherRecipientInfo(ASN1Sequence seq)
Method Summary
static OtherRecipientInfogetInstance(ASN1TaggedObject obj, boolean explicit)
return a OtherRecipientInfo object from a tagged object.
static OtherRecipientInfogetInstance(Object obj)
return a OtherRecipientInfo object from the given object.
DERObjectIdentifiergetType()
DEREncodablegetValue()
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

OtherRecipientInfo

public OtherRecipientInfo(DERObjectIdentifier oriType, DEREncodable oriValue)

OtherRecipientInfo

public OtherRecipientInfo(ASN1Sequence seq)

Method Detail

getInstance

public static OtherRecipientInfo getInstance(ASN1TaggedObject obj, boolean explicit)
return a OtherRecipientInfo object from a tagged object.

Parameters: obj the tagged object holding the object we want. explicit true if the object is meant to be explicitly tagged false otherwise.

Throws: IllegalArgumentException if the object held by the tagged object cannot be converted.

getInstance

public static OtherRecipientInfo getInstance(Object obj)
return a OtherRecipientInfo object from the given object.

Parameters: obj the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

getType

public DERObjectIdentifier getType()

getValue

public DEREncodable getValue()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 OtherRecipientInfo ::= SEQUENCE {
    oriType OBJECT IDENTIFIER,
    oriValue ANY DEFINED BY oriType }