public class JCEDHPrivateKey extends Object implements DHPrivateKey, PKCS12BagAttributeCarrier
| Modifier | Constructor and Description |
|---|---|
protected |
JCEDHPrivateKey() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Returns the name of the algorithm of this key.
|
ASN1Encodable |
getBagAttribute(ASN1ObjectIdentifier oid) |
Enumeration |
getBagAttributeKeys() |
byte[] |
getEncoded()
Return a PKCS8 representation of the key.
|
String |
getFormat()
return the encoding format we produce in getEncoded().
|
DHParameterSpec |
getParams()
Returns the parameters for this key.
|
BigInteger |
getX()
Returns this key's private value x.
|
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute) |
public String getAlgorithm()
Keynull is returned.getAlgorithm in interface Keynull if the
algorithm is unknown.public String getFormat()
public byte[] getEncoded()
getEncoded in interface Keypublic DHParameterSpec getParams()
DHKeypublic BigInteger getX()
DHPrivateKeygetX in interface DHPrivateKeypublic void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrier