org.bouncycastle.jce.provider

Class JDKGOST3410PrivateKey

public class JDKGOST3410PrivateKey extends Object implements GOST3410PrivateKey, PKCS12BagAttributeCarrier

Constructor Summary
protected JDKGOST3410PrivateKey()
Method Summary
StringgetAlgorithm()
DEREncodablegetBagAttribute(DERObjectIdentifier oid)
EnumerationgetBagAttributeKeys()
byte[]getEncoded()
Return a PKCS8 representation of the key.
StringgetFormat()
return the encoding format we produce in getEncoded().
GOST3410ParamsgetParameters()
BigIntegergetX()
voidsetBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)

Constructor Detail

JDKGOST3410PrivateKey

protected JDKGOST3410PrivateKey()

Method Detail

getAlgorithm

public String getAlgorithm()

getBagAttribute

public DEREncodable getBagAttribute(DERObjectIdentifier oid)

getBagAttributeKeys

public Enumeration getBagAttributeKeys()

getEncoded

public byte[] getEncoded()
Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.

Returns: a PKCS8 representation of the key.

getFormat

public String getFormat()
return the encoding format we produce in getEncoded().

Returns: the string "PKCS#8"

getParameters

public GOST3410Params getParameters()

getX

public BigInteger getX()

setBagAttribute

public void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)