org.bouncycastle.jce.provider

Class JDKGOST3410PrivateKey

Implemented Interfaces:
GOST3410Key, GOST3410PrivateKey, java.security.PrivateKey, PKCS12BagAttributeCarrier

public class JDKGOST3410PrivateKey
extends java.lang.Object
implements GOST3410PrivateKey, PKCS12BagAttributeCarrier

Constructor Summary

JDKGOST3410PrivateKey()

Method Summary

String
getAlgorithm()
DEREncodable
getBagAttribute(DERObjectIdentifier oid)
Enumeration
getBagAttributeKeys()
byte[]
getEncoded()
Return a PKCS8 representation of the key.
String
getFormat()
return the encoding format we produce in getEncoded().
GOST3410Params
getParameters()
BigInteger
getX()
void
setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)

Constructor Details

JDKGOST3410PrivateKey

protected JDKGOST3410PrivateKey()

Method Details

getAlgorithm

public String getAlgorithm()

getBagAttribute

public DEREncodable getBagAttribute(DERObjectIdentifier oid)
Specified by:
getBagAttribute in interface PKCS12BagAttributeCarrier

getBagAttributeKeys

public Enumeration getBagAttributeKeys()
Specified by:
getBagAttributeKeys in interface PKCS12BagAttributeCarrier

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()
Specified by:
getParameters in interface GOST3410Key

getX

public BigInteger getX()
Specified by:
getX in interface GOST3410PrivateKey

setBagAttribute

public void setBagAttribute(DERObjectIdentifier oid,
                            DEREncodable attribute)
Specified by:
setBagAttribute in interface PKCS12BagAttributeCarrier