org.bouncycastle.jce.provider
Class JCEDHPrivateKey
java.lang.Object
org.bouncycastle.jce.provider.JCEDHPrivateKey
- DHPrivateKey, PKCS12BagAttributeCarrier
public class JCEDHPrivateKey
extends java.lang.Object
JCEDHPrivateKey
protected JCEDHPrivateKey()
getAlgorithm
public String getAlgorithm()
getEncoded
public byte[] getEncoded()
Return a PKCS8 representation of the key. The sequence returned
represents a full PrivateKeyInfo object.
- a PKCS8 representation of the key.
getFormat
public String getFormat()
return the encoding format we produce in getEncoded().
- the string "PKCS#8"
getParams
public DHParameterSpec getParams()
getX
public BigInteger getX()