org.bouncycastle.jce.provider
public class JCEECPrivateKey extends java.lang.Object implements ECPrivateKey, PKCS12BagAttributeCarrier, ECPointEncoder
Modifier | Constructor and Description |
---|---|
protected |
JCEECPrivateKey() |
|
JCEECPrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params) |
|
JCEECPrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params,
JCEECPublicKey pubKey,
ECParameterSpec spec) |
|
JCEECPrivateKey(java.lang.String algorithm,
ECPrivateKeySpec spec) |
|
JCEECPrivateKey(java.lang.String algorithm,
JCEECPrivateKey key) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
DEREncodable |
getBagAttribute(DERObjectIdentifier oid) |
java.util.Enumeration |
getBagAttributeKeys() |
java.math.BigInteger |
getD()
return the private value D.
|
byte[] |
getEncoded()
Return a PKCS8 representation of the key.
|
java.lang.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()
return a parameter specification representing the EC domain parameters
for the key.
|
int |
hashCode() |
void |
setBagAttribute(DERObjectIdentifier oid,
DEREncodable attribute) |
void |
setPointFormat(java.lang.String style)
Set the formatting for encoding of points.
|
protected JCEECPrivateKey()
public JCEECPrivateKey(java.lang.String algorithm, ECPrivateKeySpec spec)
public JCEECPrivateKey(java.lang.String algorithm, ECPrivateKeyParameters params, JCEECPublicKey pubKey, ECParameterSpec spec)
public JCEECPrivateKey(java.lang.String algorithm, ECPrivateKeyParameters params)
public JCEECPrivateKey(java.lang.String algorithm, JCEECPrivateKey key)
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public ECParameterSpec getParams()
ECKey
public ECParameterSpec getParameters()
ECKey
getParameters
in interface ECKey
public java.math.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 java.util.Enumeration getBagAttributeKeys()
getBagAttributeKeys
in interface PKCS12BagAttributeCarrier
public void setPointFormat(java.lang.String style)
ECPointEncoder
setPointFormat
in interface ECPointEncoder
style
- the style to use.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object