Package org.bouncycastle.asn1.cms
Class OriginatorIdentifierOrKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.OriginatorIdentifierOrKey
- All Implemented Interfaces:
ASN1Choice,ASN1Encodable,Encodable
RFC 5652:
Content encryption key delivery mechanisms.
OriginatorIdentifierOrKey ::= CHOICE {
issuerAndSerialNumber IssuerAndSerialNumber,
subjectKeyIdentifier [0] SubjectKeyIdentifier,
originatorKey [1] OriginatorPublicKey
}
SubjectKeyIdentifier ::= OCTET STRING
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetId()static OriginatorIdentifierOrKeyReturn an OriginatorIdentifierOrKey object from the given object.static OriginatorIdentifierOrKeygetInstance(ASN1TaggedObject o, boolean explicit) Return an OriginatorIdentifierOrKey object from a tagged object.Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
OriginatorIdentifierOrKey
-
OriginatorIdentifierOrKey
-
OriginatorIdentifierOrKey
-
-
Method Details
-
getInstance
Return an OriginatorIdentifierOrKey object from a tagged object.- Parameters:
o- the tagged object holding the object we want.explicit- true if the object is meant to be explicitly tagged false otherwise.- Throws:
IllegalArgumentException- if the object held by the tagged object cannot be converted.
-
getInstance
Return an OriginatorIdentifierOrKey object from the given object.Accepted inputs:
- null → null
-
OriginatorIdentifierOrKeyobject -
IssuerAndSerialNumberobject -
ASN1TaggedObjectinput formats with IssuerAndSerialNumber structure inside
- Parameters:
o- the object we want converted.- Throws:
IllegalArgumentException- if the object cannot be converted.
-
getId
-
getIssuerAndSerialNumber
-
getSubjectKeyIdentifier
-
getOriginatorKey
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-