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.ASN1Choice
RFC 5652:
Content encryption key delivery mechanisms.
RecipientInfo ::= CHOICE { ktri KeyTransRecipientInfo, kari [1] KeyAgreeRecipientInfo, kekri [2] KEKRecipientInfo, pwri [3] PasswordRecipientInfo, ori [4] OtherRecipientInfo }
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1Encodable
getInfo()
static RecipientInfo
Return a RecipientInfo object from the given object.org.bouncycastle.asn1.ASN1Integer
Deprecated.Will be removedboolean
isTagged()
org.bouncycastle.asn1.ASN1Primitive
Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
RecipientInfo
-
RecipientInfo
-
RecipientInfo
-
RecipientInfo
-
RecipientInfo
-
RecipientInfo
public RecipientInfo(org.bouncycastle.asn1.ASN1Primitive info)
-
-
Method Details
-
getInstance
Return a RecipientInfo object from the given object.Accepted inputs:
- null → null
-
RecipientInfo
object -
ASN1Sequence
input formats with RecipientInfo structure inside -
ASN1TaggedObject
input formats with RecipientInfo structure inside
- Parameters:
o
- the object we want converted.- Throws:
IllegalArgumentException
- if the object cannot be converted.
-
getVersion
public org.bouncycastle.asn1.ASN1Integer getVersion()Deprecated.Will be removed -
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:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-