public class OriginatorIdentifierOrKey extends ASN1Object implements ASN1Choice
OriginatorIdentifierOrKey ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, subjectKeyIdentifier [0] SubjectKeyIdentifier, originatorKey [1] OriginatorPublicKey } SubjectKeyIdentifier ::= OCTET STRING
Constructor and Description |
---|
OriginatorIdentifierOrKey(ASN1OctetString id)
Deprecated.
use version taking a SubjectKeyIdentifier
|
OriginatorIdentifierOrKey(ASN1Primitive id)
Deprecated.
use more specific version
|
OriginatorIdentifierOrKey(IssuerAndSerialNumber id) |
OriginatorIdentifierOrKey(OriginatorPublicKey id) |
OriginatorIdentifierOrKey(SubjectKeyIdentifier id) |
Modifier and Type | Method and Description |
---|---|
ASN1Encodable |
getId() |
static OriginatorIdentifierOrKey |
getInstance(ASN1TaggedObject o,
boolean explicit)
Return an OriginatorIdentifierOrKey object from a tagged object.
|
static OriginatorIdentifierOrKey |
getInstance(java.lang.Object o)
Return an OriginatorIdentifierOrKey object from the given object.
|
IssuerAndSerialNumber |
getIssuerAndSerialNumber() |
OriginatorPublicKey |
getOriginatorKey() |
SubjectKeyIdentifier |
getSubjectKeyIdentifier() |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public OriginatorIdentifierOrKey(IssuerAndSerialNumber id)
public OriginatorIdentifierOrKey(ASN1OctetString id)
public OriginatorIdentifierOrKey(SubjectKeyIdentifier id)
public OriginatorIdentifierOrKey(OriginatorPublicKey id)
public OriginatorIdentifierOrKey(ASN1Primitive id)
public static OriginatorIdentifierOrKey getInstance(ASN1TaggedObject o, boolean explicit)
o
- the tagged object holding the object we want.explicit
- true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static OriginatorIdentifierOrKey getInstance(java.lang.Object o)
Accepted inputs:
OriginatorIdentifierOrKey
object
IssuerAndSerialNumber
object
ASN1TaggedObject
input formats with IssuerAndSerialNumber structure inside
o
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public ASN1Encodable getId()
public IssuerAndSerialNumber getIssuerAndSerialNumber()
public SubjectKeyIdentifier getSubjectKeyIdentifier()
public OriginatorPublicKey getOriginatorKey()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object