Package org.bouncycastle.asn1.cms
Class RecipientIdentifier
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.RecipientIdentifier
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice,org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class RecipientIdentifier
extends org.bouncycastle.asn1.ASN1Object
implements org.bouncycastle.asn1.ASN1Choice
RFC 5652:
Content encryption key delivery mechanisms.
RecipientIdentifier ::= CHOICE {
issuerAndSerialNumber IssuerAndSerialNumber,
subjectKeyIdentifier [0] SubjectKeyIdentifier
}
SubjectKeyIdentifier ::= OCTET STRING
-
Constructor Summary
ConstructorsConstructorDescriptionRecipientIdentifier(org.bouncycastle.asn1.ASN1OctetString id) RecipientIdentifier(org.bouncycastle.asn1.ASN1Primitive id) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1EncodablegetId()static RecipientIdentifierReturn a RecipientIdentifier object from the given object.booleanisTagged()org.bouncycastle.asn1.ASN1PrimitiveProduce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
RecipientIdentifier
-
RecipientIdentifier
public RecipientIdentifier(org.bouncycastle.asn1.ASN1OctetString id) -
RecipientIdentifier
public RecipientIdentifier(org.bouncycastle.asn1.ASN1Primitive id)
-
-
Method Details
-
getInstance
Return a RecipientIdentifier object from the given object.Accepted inputs:
- null → null
-
RecipientIdentifierobject -
IssuerAndSerialNumberobject -
ASN1OctetStringinput formats (OctetString, byte[]) with value of KeyIdentifier in DER form -
ASN1Primitivefor RecipientIdentifier constructor
- Parameters:
o- the object we want converted.- Throws:
IllegalArgumentException- if the object cannot be converted.
-
isTagged
public boolean isTagged() -
getId
public org.bouncycastle.asn1.ASN1Encodable getId() -
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
-