org.bouncycastle.jce.provider

Class JDKDSAPrivateKey

public class JDKDSAPrivateKey extends Object implements DSAPrivateKey, PKCS12BagAttributeCarrier

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

Constructor Detail

JDKDSAPrivateKey

protected JDKDSAPrivateKey()

Method Detail

equals

public boolean equals(Object o)

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"

getParams

public DSAParams getParams()

getX

public BigInteger getX()

hashCode

public int hashCode()

setBagAttribute

public void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)