public class BCDSTU4145PrivateKey extends Object implements ECPrivateKey, ECPrivateKey, PKCS12BagAttributeCarrier, ECPointEncoder
Modifier | Constructor and Description |
---|---|
protected |
BCDSTU4145PrivateKey() |
|
BCDSTU4145PrivateKey(BCDSTU4145PrivateKey key) |
|
BCDSTU4145PrivateKey(ECPrivateKey key) |
|
BCDSTU4145PrivateKey(ECPrivateKeySpec spec) |
|
BCDSTU4145PrivateKey(ECPrivateKeySpec spec) |
|
BCDSTU4145PrivateKey(String algorithm,
org.bouncycastle.crypto.params.ECPrivateKeyParameters params) |
|
BCDSTU4145PrivateKey(String algorithm,
org.bouncycastle.crypto.params.ECPrivateKeyParameters params,
BCDSTU4145PublicKey pubKey,
ECParameterSpec spec) |
|
BCDSTU4145PrivateKey(String algorithm,
org.bouncycastle.crypto.params.ECPrivateKeyParameters params,
BCDSTU4145PublicKey pubKey,
ECParameterSpec spec) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAlgorithm() |
org.bouncycastle.asn1.ASN1Encodable |
getBagAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier 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(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
org.bouncycastle.asn1.ASN1Encodable 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 BCDSTU4145PrivateKey()
public BCDSTU4145PrivateKey(ECPrivateKey key)
public BCDSTU4145PrivateKey(ECPrivateKeySpec spec)
public BCDSTU4145PrivateKey(ECPrivateKeySpec spec)
public BCDSTU4145PrivateKey(BCDSTU4145PrivateKey key)
public BCDSTU4145PrivateKey(String algorithm, org.bouncycastle.crypto.params.ECPrivateKeyParameters params, BCDSTU4145PublicKey pubKey, ECParameterSpec spec)
public BCDSTU4145PrivateKey(String algorithm, org.bouncycastle.crypto.params.ECPrivateKeyParameters params, BCDSTU4145PublicKey pubKey, ECParameterSpec spec)
public BCDSTU4145PrivateKey(String algorithm, org.bouncycastle.crypto.params.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(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.asn1.ASN1Encodable attribute)
setBagAttribute
in interface PKCS12BagAttributeCarrier
public org.bouncycastle.asn1.ASN1Encodable getBagAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier 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 © 2017 BouncyCastle.org. All rights reserved.