public class

JCEDHPrivateKey

extends Object
implements DHPrivateKey PKCS12BagAttributeCarrier
java.lang.Object
   ↳ org.bouncycastle.jce.provider.JCEDHPrivateKey

Summary

[Expand]
Inherited Constants
From interface java.security.Key
From interface java.security.PrivateKey
From interface javax.crypto.interfaces.DHPrivateKey
Protected Constructors
JCEDHPrivateKey()
Public Methods
String getAlgorithm()
DEREncodable getBagAttribute(DERObjectIdentifier oid)
Enumeration getBagAttributeKeys()
byte[] getEncoded()
Return a PKCS8 representation of the key.
String getFormat()
return the encoding format we produce in getEncoded().
DHParameterSpec getParams()
BigInteger getX()
void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.Key
From interface javax.crypto.interfaces.DHKey
From interface javax.crypto.interfaces.DHPrivateKey
From interface org.bouncycastle.jce.interfaces.PKCS12BagAttributeCarrier

Protected Constructors

protected JCEDHPrivateKey ()

Public Methods

public String getAlgorithm ()

public DEREncodable getBagAttribute (DERObjectIdentifier oid)

public Enumeration getBagAttributeKeys ()

public byte[] getEncoded ()

Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.

Returns
  • a PKCS8 representation of the key.

public String getFormat ()

return the encoding format we produce in getEncoded().

Returns
  • the string "PKCS#8"

public DHParameterSpec getParams ()

public BigInteger getX ()

public void setBagAttribute (DERObjectIdentifier oid, DEREncodable attribute)