Package org.bouncycastle.asn1.cms
Class RecipientIdentifier
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.RecipientIdentifier
- All Implemented Interfaces:
ASN1Choice
,ASN1Encodable
,Encodable
RFC 5652:
Content encryption key delivery mechanisms.
RecipientIdentifier ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, subjectKeyIdentifier [0] SubjectKeyIdentifier } SubjectKeyIdentifier ::= OCTET STRING
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetId()
static RecipientIdentifier
Return a RecipientIdentifier object from the given object.boolean
isTagged()
Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
RecipientIdentifier
-
RecipientIdentifier
-
RecipientIdentifier
-
-
Method Details
-
getInstance
Return a RecipientIdentifier object from the given object.Accepted inputs:
- null → null
-
RecipientIdentifier
object -
IssuerAndSerialNumber
object -
ASN1OctetString
input formats (OctetString, byte[]) with value of KeyIdentifier in DER form -
ASN1Primitive
for RecipientIdentifier constructor
- Parameters:
o
- the object we want converted.- Throws:
IllegalArgumentException
- if the object cannot be converted.
-
isTagged
public boolean isTagged() -
getId
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-