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, waitdestroy, isDestroyedprotected 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 Keypublic String getFormat()
public byte[] getEncoded()
getEncoded in interface Keypublic ECParameterSpec getParams()
public ECParameterSpec getParameters()
ECKeygetParameters in interface ECKeypublic BigInteger getS()
public BigInteger getD()
ECPrivateKeygetD in interface ECPrivateKeypublic void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic DEREncodable getBagAttribute(DERObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrierpublic void setPointFormat(String style)
ECPointEncodersetPointFormat in interface ECPointEncoderstyle - the style to use.Copyright © 2015. All rights reserved.