public class

JCEElGamalPrivateKey

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

Summary

[Expand]
Inherited Constants
From interface java.security.Key
From interface java.security.PrivateKey
From interface javax.crypto.interfaces.DHPrivateKey
Protected Constructors
JCEElGamalPrivateKey()
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().
ElGamalParameterSpec getParameters()
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.ElGamalKey
From interface org.bouncycastle.jce.interfaces.ElGamalPrivateKey
From interface org.bouncycastle.jce.interfaces.PKCS12BagAttributeCarrier

Protected Constructors

protected JCEElGamalPrivateKey ()

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 ElGamalParameterSpec getParameters ()

public DHParameterSpec getParams ()

public BigInteger getX ()

public void setBagAttribute (DERObjectIdentifier oid, DEREncodable attribute)