org.bouncycastle.asn1.cms

Class OtherRecipientInfo

Implemented Interfaces:
DEREncodable

public class OtherRecipientInfo
extends ASN1Encodable

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

OtherRecipientInfo(ASN1Sequence seq)
OtherRecipientInfo(DERObjectIdentifier oriType, DEREncodable oriValue)

Method Summary

static OtherRecipientInfo
getInstance(Object obj)
return a OtherRecipientInfo object from the given object.
static OtherRecipientInfo
getInstance(ASN1TaggedObject obj, boolean explicit)
return a OtherRecipientInfo object from a tagged object.
DERObjectIdentifier
getType()
DEREncodable
getValue()
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Constructor Details

OtherRecipientInfo

public OtherRecipientInfo(ASN1Sequence seq)

OtherRecipientInfo

public OtherRecipientInfo(DERObjectIdentifier oriType,
                          DEREncodable oriValue)

Method Details

getInstance

public static OtherRecipientInfo getInstance(Object obj)
return a OtherRecipientInfo object from the given object.
Parameters:
obj - the object we want converted.

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.

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 }
 
Overrides:
toASN1Object in interface ASN1Encodable