org.bouncycastle.jce.provider

Class JCEECPrivateKey

public class JCEECPrivateKey extends Object implements ECPrivateKey, PKCS12BagAttributeCarrier, ECPointEncoder

Constructor Summary
protected JCEECPrivateKey()
Method Summary
booleanequals(Object o)
StringgetAlgorithm()
DEREncodablegetBagAttribute(DERObjectIdentifier oid)
EnumerationgetBagAttributeKeys()
BigIntegergetD()
byte[]getEncoded()
Return a PKCS8 representation of the key.
StringgetFormat()
return the encoding format we produce in getEncoded().
ECParameterSpecgetParameters()
ECParameterSpecgetParams()
inthashCode()
voidsetBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
voidsetPointFormat(String style)

Constructor Detail

JCEECPrivateKey

protected JCEECPrivateKey()

Method Detail

equals

public boolean equals(Object o)

getAlgorithm

public String getAlgorithm()

getBagAttribute

public DEREncodable getBagAttribute(DERObjectIdentifier oid)

getBagAttributeKeys

public Enumeration getBagAttributeKeys()

getD

public BigInteger getD()

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 ECParameterSpec getParameters()

getParams

public ECParameterSpec getParams()

hashCode

public int hashCode()

setBagAttribute

public void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)

setPointFormat

public void setPointFormat(String style)