public class BCDSTU4145PrivateKey extends java.lang.Object implements java.security.interfaces.ECPrivateKey, ECPrivateKey, PKCS12BagAttributeCarrier, ECPointEncoder
| Modifier | Constructor and Description |
|---|---|
protected |
BCDSTU4145PrivateKey() |
|
BCDSTU4145PrivateKey(BCDSTU4145PrivateKey key) |
|
BCDSTU4145PrivateKey(java.security.interfaces.ECPrivateKey key) |
|
BCDSTU4145PrivateKey(ECPrivateKeySpec spec) |
|
BCDSTU4145PrivateKey(java.security.spec.ECPrivateKeySpec spec) |
|
BCDSTU4145PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params) |
|
BCDSTU4145PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params,
BCDSTU4145PublicKey pubKey,
java.security.spec.ECParameterSpec spec) |
|
BCDSTU4145PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params,
BCDSTU4145PublicKey pubKey,
ECParameterSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
ASN1Encodable |
getBagAttribute(ASN1ObjectIdentifier 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.
|
java.security.spec.ECParameterSpec |
getParams() |
java.math.BigInteger |
getS() |
int |
hashCode() |
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute) |
void |
setPointFormat(java.lang.String style)
Set the formatting for encoding of points.
|
java.lang.String |
toString() |
protected BCDSTU4145PrivateKey()
public BCDSTU4145PrivateKey(java.security.interfaces.ECPrivateKey key)
public BCDSTU4145PrivateKey(ECPrivateKeySpec spec)
public BCDSTU4145PrivateKey(java.security.spec.ECPrivateKeySpec spec)
public BCDSTU4145PrivateKey(BCDSTU4145PrivateKey key)
public BCDSTU4145PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params,
BCDSTU4145PublicKey pubKey,
java.security.spec.ECParameterSpec spec)
public BCDSTU4145PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params,
BCDSTU4145PublicKey pubKey,
ECParameterSpec spec)
public BCDSTU4145PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params)
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic java.security.spec.ECParameterSpec getParams()
public ECParameterSpec getParameters()
ECKeygetParameters in interface ECKeypublic java.math.BigInteger getS()
public java.math.BigInteger getD()
ECPrivateKeygetD in interface ECPrivateKeypublic void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic java.util.Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrierpublic void setPointFormat(java.lang.String style)
ECPointEncodersetPointFormat in interface ECPointEncoderstyle - the style to use.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object