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

public Class OriginatorPublicKey

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1BitString, .ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERBitString, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier

RFC 5652: Content encryption key delivery mechanisms.

OriginatorPublicKey ::= SEQUENCE {
    algorithm AlgorithmIdentifier,
    publicKey BIT STRING 
}

Field Summary

Modifier and TypeField and Description
private AlgorithmIdentifier
private ASN1BitString

Constructor Summary

AccessConstructor and Description
public
OriginatorPublicKey(AlgorithmIdentifier algorithm, byte[] publicKey)

public
private

Method Summary

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

Return an OriginatorPublicKey object from a tagged object.

public static OriginatorPublicKey
getInstance(Object
the object we want converted.
obj
)

Return an OriginatorPublicKey object from the given object.

public DERBitString
getPublicKey()

Deprecated Use getPublicKeyData() instead.
public ASN1BitString
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

algorithmback to summary
private AlgorithmIdentifier algorithm
publicKeyback to summary
private ASN1BitString publicKey

Constructor Detail

OriginatorPublicKeyback to summary
public OriginatorPublicKey(AlgorithmIdentifier algorithm, byte[] publicKey)
OriginatorPublicKeyback to summary
public OriginatorPublicKey(AlgorithmIdentifier algorithm, ASN1BitString publicKey)
OriginatorPublicKeyback to summary
private OriginatorPublicKey(ASN1Sequence seq)

Method Detail

getAlgorithmback to summary
public AlgorithmIdentifier getAlgorithm()
getInstanceback to summary
public static OriginatorPublicKey getInstance(ASN1TaggedObject obj, boolean explicit)

Return an OriginatorPublicKey object from a tagged object.

Parameters
obj: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 OriginatorPublicKey getInstance(Object obj)

Return an OriginatorPublicKey object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getPublicKeyback to summary
public DERBitString getPublicKey()

Deprecated

Use getPublicKeyData() instead.

getPublicKeyDataback to summary
public ASN1BitString getPublicKeyData()
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.