Package org.bouncycastle.asn1.cms
Class RecipientInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.RecipientInfo
- All Implemented Interfaces:
ASN1Choice,ASN1Encodable,Encodable
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()static RecipientInfoReturn a RecipientInfo object from the given object.booleanisTagged()Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
RecipientInfo
-
RecipientInfo
-
RecipientInfo
-
RecipientInfo
-
RecipientInfo
-
RecipientInfo
-
-
Method Details
-
getInstance
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:
IllegalArgumentException- if the object cannot be converted.
-
getVersion
-
isTagged
public boolean isTagged() -
getInfo
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-