public class RecipientInfo
extends org.bouncycastle.asn1.ASN1Object
implements org.bouncycastle.asn1.ASN1Choice
RecipientInfo ::= CHOICE { ktri KeyTransRecipientInfo, kari [1] KeyAgreeRecipientInfo, kekri [2] KEKRecipientInfo, pwri [3] PasswordRecipientInfo, ori [4] OtherRecipientInfo }
Constructor and Description |
---|
RecipientInfo(org.bouncycastle.asn1.ASN1Primitive info) |
RecipientInfo(KEKRecipientInfo info) |
RecipientInfo(KeyAgreeRecipientInfo info) |
RecipientInfo(KeyTransRecipientInfo info) |
RecipientInfo(OtherRecipientInfo info) |
RecipientInfo(PasswordRecipientInfo info) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.ASN1Encodable |
getInfo() |
static RecipientInfo |
getInstance(java.lang.Object o)
Return a RecipientInfo object from the given object.
|
org.bouncycastle.asn1.ASN1Integer |
getVersion()
Deprecated.
Will be removed
|
boolean |
isTagged() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
public RecipientInfo(KeyTransRecipientInfo info)
public RecipientInfo(KeyAgreeRecipientInfo info)
public RecipientInfo(KEKRecipientInfo info)
public RecipientInfo(PasswordRecipientInfo info)
public RecipientInfo(OtherRecipientInfo info)
public RecipientInfo(org.bouncycastle.asn1.ASN1Primitive info)
public static RecipientInfo getInstance(java.lang.Object o)
Accepted inputs:
RecipientInfo
object
ASN1Sequence
input formats with RecipientInfo structure inside
ASN1TaggedObject
input formats with RecipientInfo structure inside
o
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public org.bouncycastle.asn1.ASN1Integer getVersion()
public boolean isTagged()
public org.bouncycastle.asn1.ASN1Encodable getInfo()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object