Package org.bouncycastle.asn1.cms
Class RecipientInfo
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.cms.RecipientInfo
-
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice,org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class RecipientInfo extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1ChoiceRFC 5652: Content encryption key delivery mechanisms.RecipientInfo ::= CHOICE { ktri KeyTransRecipientInfo, kari [1] KeyAgreeRecipientInfo, kekri [2] KEKRecipientInfo, pwri [3] PasswordRecipientInfo, ori [4] OtherRecipientInfo }
-
-
Constructor Summary
Constructors Constructor Description RecipientInfo(org.bouncycastle.asn1.ASN1Primitive info)RecipientInfo(KEKRecipientInfo info)RecipientInfo(KeyAgreeRecipientInfo info)RecipientInfo(KeyTransRecipientInfo info)RecipientInfo(OtherRecipientInfo info)RecipientInfo(PasswordRecipientInfo info)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1EncodablegetInfo()static RecipientInfogetInstance(java.lang.Object o)Return a RecipientInfo object from the given object.org.bouncycastle.asn1.ASN1IntegergetVersion()booleanisTagged()org.bouncycastle.asn1.ASN1PrimitivetoASN1Primitive()Produce an object suitable for an ASN1OutputStream.
-
-
-
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(org.bouncycastle.asn1.ASN1Primitive info)
-
-
Method Detail
-
getInstance
public static RecipientInfo getInstance(java.lang.Object o)
Return a RecipientInfo object from the given object.Accepted inputs:
- null → null
-
RecipientInfoobject -
ASN1Sequenceinput formats with RecipientInfo structure inside -
ASN1TaggedObjectinput formats with RecipientInfo structure inside
- Parameters:
o- the object we want converted.- Throws:
java.lang.IllegalArgumentException- if the object cannot be converted.
-
getVersion
public org.bouncycastle.asn1.ASN1Integer getVersion()
-
isTagged
public boolean isTagged()
-
getInfo
public org.bouncycastle.asn1.ASN1Encodable getInfo()
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-
-