public class JCEECPrivateKey extends Object implements ECPrivateKey, ECPrivateKey, PKCS12BagAttributeCarrier, ECPointEncoder
serialVersionUID
Modifier | Constructor and Description |
---|---|
protected |
JCEECPrivateKey() |
|
JCEECPrivateKey(ECPrivateKey key) |
|
JCEECPrivateKey(String algorithm,
ECPrivateKeyParameters params) |
|
JCEECPrivateKey(String algorithm,
ECPrivateKeyParameters params,
JCEECPublicKey pubKey,
ECParameterSpec spec) |
|
JCEECPrivateKey(String algorithm,
ECPrivateKeyParameters params,
JCEECPublicKey pubKey,
ECParameterSpec spec) |
|
JCEECPrivateKey(String algorithm,
ECPrivateKeySpec spec) |
|
JCEECPrivateKey(String algorithm,
ECPrivateKeySpec spec) |
|
JCEECPrivateKey(String algorithm,
JCEECPrivateKey key) |
Modifier and Type | Method and Description |
---|---|
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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, isDestroyed
protected JCEECPrivateKey()
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)
public String getAlgorithm()
getAlgorithm
in interface Key
public String getFormat()
public byte[] getEncoded()
getEncoded
in interface Key
public ECParameterSpec getParams()
public ECParameterSpec getParameters()
ECKey
getParameters
in interface ECKey
public BigInteger getS()
public BigInteger getD()
ECPrivateKey
getD
in interface ECPrivateKey
public void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
setBagAttribute
in interface PKCS12BagAttributeCarrier
public DEREncodable getBagAttribute(DERObjectIdentifier oid)
getBagAttribute
in interface PKCS12BagAttributeCarrier
public Enumeration getBagAttributeKeys()
getBagAttributeKeys
in interface PKCS12BagAttributeCarrier
public void setPointFormat(String style)
ECPointEncoder
setPointFormat
in interface ECPointEncoder
style
- the style to use.Copyright © 2015. All rights reserved.