org.bouncycastle.asn1.cms

Class OriginatorPublicKey

Implemented Interfaces:
DEREncodable

public class OriginatorPublicKey
extends ASN1Encodable

Constructor Summary

OriginatorPublicKey(ASN1Sequence seq)
OriginatorPublicKey(AlgorithmIdentifier algorithm, byte[] publicKey)

Method Summary

AlgorithmIdentifier
getAlgorithm()
static OriginatorPublicKey
getInstance(Object obj)
return an OriginatorPublicKey object from the given object.
static OriginatorPublicKey
getInstance(ASN1TaggedObject obj, boolean explicit)
return an OriginatorPublicKey object from a tagged object.
DERBitString
getPublicKey()
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Constructor Details

OriginatorPublicKey

public OriginatorPublicKey(ASN1Sequence seq)


OriginatorPublicKey

public OriginatorPublicKey(AlgorithmIdentifier algorithm,
                           byte[] publicKey)

Method Details

getAlgorithm

public AlgorithmIdentifier getAlgorithm()


getInstance

public static OriginatorPublicKey getInstance(Object obj)
return an OriginatorPublicKey object from the given object.

Parameters:
obj - the object we want converted.


getInstance

public static OriginatorPublicKey getInstance(ASN1TaggedObject obj,
                                              boolean explicit)
return an OriginatorPublicKey object from a tagged object.

Parameters:
obj - the tagged object holding the object we want.
explicit - true if the object is meant to be explicitly tagged false otherwise.


getPublicKey

public DERBitString getPublicKey()


toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 OriginatorPublicKey ::= SEQUENCE {
     algorithm AlgorithmIdentifier,
     publicKey BIT STRING 
 }
 
Overrides:
toASN1Object in interface ASN1Encodable