public class

JCEECPrivateKey

extends Object
implements ECPrivateKey ECPointEncoder ECPrivateKey PKCS12BagAttributeCarrier
java.lang.Object
   ↳ org.bouncycastle.jce.provider.JCEECPrivateKey

Summary

[Expand]
Inherited Constants
From interface java.security.Key
From interface java.security.PrivateKey
From interface java.security.interfaces.ECPrivateKey
Public Constructors
JCEECPrivateKey(ECPrivateKey key)
JCEECPrivateKey(String algorithm, ECPrivateKeySpec spec)
JCEECPrivateKey(String algorithm, ECPrivateKeySpec spec)
JCEECPrivateKey(String algorithm, JCEECPrivateKey key)
JCEECPrivateKey(String algorithm, ECPrivateKeyParameters params, JCEECPublicKey pubKey, ECParameterSpec spec)
JCEECPrivateKey(String algorithm, ECPrivateKeyParameters params, JCEECPublicKey pubKey, ECParameterSpec spec)
JCEECPrivateKey(String algorithm, ECPrivateKeyParameters params)
Protected Constructors
JCEECPrivateKey()
Public Methods
boolean equals(Object o)
String getAlgorithm()
DEREncodable getBagAttribute(DERObjectIdentifier oid)
Enumeration getBagAttributeKeys()
BigInteger getD()
return the private value D.
byte[] getEncoded()
Return a PKCS8 representation of the key.
String getFormat()
return the encoding format we produce in getEncoded().
ECParameterSpec getParameters()
return a parameter specification representing the EC domain parameters for the key.
ECParameterSpec getParams()
BigInteger getS()
int hashCode()
void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
void setPointFormat(String style)
Set the formatting for encoding of points.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.Key
From interface java.security.interfaces.ECKey
From interface java.security.interfaces.ECPrivateKey
From interface org.bouncycastle.jce.interfaces.ECKey
From interface org.bouncycastle.jce.interfaces.ECPointEncoder
From interface org.bouncycastle.jce.interfaces.ECPrivateKey
From interface org.bouncycastle.jce.interfaces.PKCS12BagAttributeCarrier

Public Constructors

public JCEECPrivateKey (ECPrivateKey key)

public JCEECPrivateKey (String algorithm, ECPrivateKeySpec spec)

public JCEECPrivateKey (String algorithm, ECPrivateKeySpec spec)

public JCEECPrivateKey (String algorithm, JCEECPrivateKey key)

public JCEECPrivateKey (String algorithm, ECPrivateKeyParameters params, JCEECPublicKey pubKey, ECParameterSpec spec)

public JCEECPrivateKey (String algorithm, ECPrivateKeyParameters params, JCEECPublicKey pubKey, ECParameterSpec spec)

public JCEECPrivateKey (String algorithm, ECPrivateKeyParameters params)

Protected Constructors

protected JCEECPrivateKey ()

Public Methods

public boolean equals (Object o)

public String getAlgorithm ()

public DEREncodable getBagAttribute (DERObjectIdentifier oid)

public Enumeration getBagAttributeKeys ()

public BigInteger getD ()

return the private value D.

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.

public String getFormat ()

return the encoding format we produce in getEncoded().

Returns
  • the string "PKCS#8"

public ECParameterSpec getParameters ()

return a parameter specification representing the EC domain parameters for the key.

public ECParameterSpec getParams ()

public BigInteger getS ()

public int hashCode ()

public void setBagAttribute (DERObjectIdentifier oid, DEREncodable attribute)

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".

Parameters
style the style to use.

public String toString ()