org.bouncycastle.asn1.cms
Class RecipientInfo

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.cms.RecipientInfo
All Implemented Interfaces:
DEREncodable

public class RecipientInfo
extends ASN1Encodable


Field Summary
(package private)  DEREncodable info
           
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
RecipientInfo(DERObject info)
           
RecipientInfo(KEKRecipientInfo info)
           
RecipientInfo(KeyAgreeRecipientInfo info)
           
RecipientInfo(KeyTransRecipientInfo info)
           
RecipientInfo(OtherRecipientInfo info)
           
RecipientInfo(PasswordRecipientInfo info)
           
 
Method Summary
 DEREncodable getInfo()
           
static RecipientInfo getInstance(java.lang.Object o)
           
private  KEKRecipientInfo getKEKInfo(ASN1TaggedObject o)
           
 DERInteger getVersion()
           
 boolean isTagged()
           
 DERObject toASN1Object()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

info

DEREncodable info
Constructor Detail

RecipientInfo

public RecipientInfo(KeyTransRecipientInfo info)

RecipientInfo

public RecipientInfo(KeyAgreeRecipientInfo info)

RecipientInfo

public RecipientInfo(KEKRecipientInfo info)

RecipientInfo

public RecipientInfo(PasswordRecipientInfo info)

RecipientInfo

public RecipientInfo(OtherRecipientInfo info)

RecipientInfo

public RecipientInfo(DERObject info)
Method Detail

getInstance

public static RecipientInfo getInstance(java.lang.Object o)

getVersion

public DERInteger getVersion()

isTagged

public boolean isTagged()

getInfo

public DEREncodable getInfo()

getKEKInfo

private KEKRecipientInfo getKEKInfo(ASN1TaggedObject o)

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 RecipientInfo ::= CHOICE {
     ktri KeyTransRecipientInfo,
     kari [1] KeyAgreeRecipientInfo,
     kekri [2] KEKRecipientInfo,
     pwri [3] PasswordRecipientInfo,
     ori [4] OtherRecipientInfo }
 

Specified by:
toASN1Object in class ASN1Encodable