Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class OriginatorIdentifierOrKey

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
org.bouncycastle.asn1.ASN1Choice, .ASN1Encodable, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERTags, .DERTaggedObject, org.bouncycastle.asn1.x509.SubjectKeyIdentifier

RFC 5652: Content encryption key delivery mechanisms.
OriginatorIdentifierOrKey ::= CHOICE {
    issuerAndSerialNumber IssuerAndSerialNumber,
    subjectKeyIdentifier [0] SubjectKeyIdentifier,
    originatorKey [1] OriginatorPublicKey 
}

SubjectKeyIdentifier ::= OCTET STRING

Field Summary

Modifier and TypeField and Description
private ASN1Encodable

Constructor Summary

AccessConstructor and Description
public
public
OriginatorIdentifierOrKey(ASN1OctetString id)
Deprecated use version taking a SubjectKeyIdentifier

public
public
public
OriginatorIdentifierOrKey(ASN1Primitive id)
Deprecated use more specific version

Method Summary

Modifier and TypeMethod and Description
public ASN1Encodable
public static OriginatorIdentifierOrKey
getInstance(ASN1TaggedObject
the tagged object holding the object we want.
o
,
boolean
true if the object is meant to be explicitly tagged false otherwise.
explicit
)

Return an OriginatorIdentifierOrKey object from a tagged object.

public static OriginatorIdentifierOrKey
getInstance(Object
the object we want converted.
o
)

Return an OriginatorIdentifierOrKey object from the given object.

public IssuerAndSerialNumber
public OriginatorPublicKey
public SubjectKeyIdentifier
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

idback to summary
private ASN1Encodable id

Constructor Detail

OriginatorIdentifierOrKeyback to summary
public OriginatorIdentifierOrKey(IssuerAndSerialNumber id)
OriginatorIdentifierOrKeyback to summary
public OriginatorIdentifierOrKey(ASN1OctetString id)

Deprecated

use version taking a SubjectKeyIdentifier

OriginatorIdentifierOrKeyback to summary
public OriginatorIdentifierOrKey(SubjectKeyIdentifier id)
OriginatorIdentifierOrKeyback to summary
public OriginatorIdentifierOrKey(OriginatorPublicKey id)
OriginatorIdentifierOrKeyback to summary
public OriginatorIdentifierOrKey(ASN1Primitive id)

Deprecated

use more specific version

Method Detail

getIdback to summary
public ASN1Encodable getId()
getInstanceback to summary
public static OriginatorIdentifierOrKey getInstance(ASN1TaggedObject o, boolean explicit)

Return an OriginatorIdentifierOrKey object from a tagged object.

Parameters
o:ASN1TaggedObject

the tagged object holding the object we want.

explicit:boolean

true if the object is meant to be explicitly tagged false otherwise.

Exceptions
IllegalArgumentException:
if the object held by the tagged object cannot be converted.
getInstanceback to summary
public static OriginatorIdentifierOrKey getInstance(Object o)

Return an OriginatorIdentifierOrKey object from the given object.

Accepted inputs:

Parameters
o:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getIssuerAndSerialNumberback to summary
public IssuerAndSerialNumber getIssuerAndSerialNumber()
getOriginatorKeyback to summary
public OriginatorPublicKey getOriginatorKey()
getSubjectKeyIdentifierback to summary
public SubjectKeyIdentifier getSubjectKeyIdentifier()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.