org.bouncycastle.jce.provider
Class JCEECPrivateKey
java.lang.Object
org.bouncycastle.jce.provider.JCEECPrivateKey
- ECKey, ECPointEncoder, ECPrivateKey, PrivateKey, PKCS12BagAttributeCarrier
public class JCEECPrivateKey
extends java.lang.Object
JCEECPrivateKey
protected JCEECPrivateKey()
getAlgorithm
public String getAlgorithm()
getD
public BigInteger getD()
return the private value D.
- getD in interface ECPrivateKey
getEncoded
public byte[] getEncoded()
Return a PKCS8 representation of the key. The sequence returned
represents a full PrivateKeyInfo object.
- a PKCS8 representation of the key.
getFormat
public String getFormat()
return the encoding format we produce in getEncoded().
setPointFormat
public void setPointFormat(String style)
Set the formatting for encoding of points. If the String "UNCOMPRESSED" is passed
in point compression will not be used. If the String "COMPRESSED" is passed point
compression will be used. The default is "UNCOMPRESSED".
- setPointFormat in interface ECPointEncoder
style
- the style to use.