public class

OriginatorIdentifierOrKey

extends ASN1Encodable
implements ASN1Choice
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.cms.OriginatorIdentifierOrKey

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
OriginatorIdentifierOrKey(IssuerAndSerialNumber id)
OriginatorIdentifierOrKey(ASN1OctetString id)
This constructor is deprecated. use version taking a SubjectKeyIdentifier
OriginatorIdentifierOrKey(SubjectKeyIdentifier id)
OriginatorIdentifierOrKey(OriginatorPublicKey id)
OriginatorIdentifierOrKey(DERObject id)
This constructor is deprecated. use more specific version
Public Methods
DEREncodable getId()
static OriginatorIdentifierOrKey getInstance(ASN1TaggedObject o, boolean explicit)
return an OriginatorIdentifierOrKey object from a tagged object.
static OriginatorIdentifierOrKey getInstance(Object o)
return an OriginatorIdentifierOrKey object from the given object.
IssuerAndSerialNumber getIssuerAndSerialNumber()
OriginatorPublicKey getOriginatorKey()
SubjectKeyIdentifier getSubjectKeyIdentifier()
DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public OriginatorIdentifierOrKey (IssuerAndSerialNumber id)

public OriginatorIdentifierOrKey (ASN1OctetString id)

This constructor is deprecated.
use version taking a SubjectKeyIdentifier

public OriginatorIdentifierOrKey (SubjectKeyIdentifier id)

public OriginatorIdentifierOrKey (OriginatorPublicKey id)

public OriginatorIdentifierOrKey (DERObject id)

This constructor is deprecated.
use more specific version

Public Methods

public DEREncodable getId ()

public static OriginatorIdentifierOrKey getInstance (ASN1TaggedObject o, boolean explicit)

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.

public static OriginatorIdentifierOrKey getInstance (Object o)

return an OriginatorIdentifierOrKey object from the given object.

Parameters
o the object we want converted.
Throws
IllegalArgumentException if the object cannot be converted.

public IssuerAndSerialNumber getIssuerAndSerialNumber ()

public OriginatorPublicKey getOriginatorKey ()

public SubjectKeyIdentifier getSubjectKeyIdentifier ()

public DERObject toASN1Object ()

Produce an object suitable for an ASN1OutputStream.

 OriginatorIdentifierOrKey ::= CHOICE {
     issuerAndSerialNumber IssuerAndSerialNumber,
     subjectKeyIdentifier [0] SubjectKeyIdentifier,
     originatorKey [1] OriginatorPublicKey 
 }

 SubjectKeyIdentifier ::= OCTET STRING