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()
equals
public boolean equals(Object o)
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().
getParameters
public ECParameterSpec getParameters()
return a parameter specification representing the EC domain parameters
for the key.
- getParameters in interface ECKey
getParams
public ECParameterSpec getParams()
this method vanises in JDK 1.5. Use getParameters().
return a parameter specification representing the EC domain parameters
for the key.
- getParams in interface ECKey
hashCode
public int hashCode()
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.