java.io.Serializable
, java.security.interfaces.ECKey
, java.security.interfaces.ECPrivateKey
, java.security.Key
, java.security.PrivateKey
, javax.security.auth.Destroyable
, ECKey
, ECPointEncoder
, ECPrivateKey
, PKCS12BagAttributeCarrier
public class BCECGOST3410PrivateKey extends java.lang.Object implements java.security.interfaces.ECPrivateKey, ECPrivateKey, PKCS12BagAttributeCarrier, ECPointEncoder
Modifier | Constructor | Description |
---|---|---|
protected |
BCECGOST3410PrivateKey() |
|
|
BCECGOST3410PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params) |
|
|
BCECGOST3410PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params,
BCECGOST3410PublicKey pubKey,
java.security.spec.ECParameterSpec spec) |
|
|
BCECGOST3410PrivateKey(java.lang.String algorithm,
ECPrivateKeyParameters params,
BCECGOST3410PublicKey pubKey,
ECParameterSpec spec) |
|
|
BCECGOST3410PrivateKey(java.security.interfaces.ECPrivateKey key) |
|
|
BCECGOST3410PrivateKey(java.security.spec.ECPrivateKeySpec spec) |
|
|
BCECGOST3410PrivateKey(BCECGOST3410PrivateKey key) |
|
|
BCECGOST3410PrivateKey(ECPrivateKeySpec spec) |
Modifier and Type | Method | 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 BCECGOST3410PrivateKey()
public BCECGOST3410PrivateKey(java.security.interfaces.ECPrivateKey key)
public BCECGOST3410PrivateKey(ECPrivateKeySpec spec)
public BCECGOST3410PrivateKey(java.security.spec.ECPrivateKeySpec spec)
public BCECGOST3410PrivateKey(BCECGOST3410PrivateKey key)
public BCECGOST3410PrivateKey(java.lang.String algorithm, ECPrivateKeyParameters params, BCECGOST3410PublicKey pubKey, java.security.spec.ECParameterSpec spec)
public BCECGOST3410PrivateKey(java.lang.String algorithm, ECPrivateKeyParameters params, BCECGOST3410PublicKey pubKey, ECParameterSpec spec)
public BCECGOST3410PrivateKey(java.lang.String algorithm, ECPrivateKeyParameters params)
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 java.security.spec.ECParameterSpec getParams()
getParams
in interface java.security.interfaces.ECKey
public ECParameterSpec getParameters()
ECKey
getParameters
in interface ECKey
public java.math.BigInteger getS()
getS
in interface java.security.interfaces.ECPrivateKey
public java.math.BigInteger getD()
ECPrivateKey
getD
in interface ECPrivateKey
public void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute
in interface PKCS12BagAttributeCarrier
public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier 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
public java.lang.String toString()
toString
in class java.lang.Object