public class ElGamalPrivateKeyImpl extends Object implements ElGamalPrivateKey, DHPrivateKey
Modifier | Constructor and Description |
---|---|
protected |
ElGamalPrivateKeyImpl() |
|
ElGamalPrivateKeyImpl(BigInteger x,
ElGamalParameterSpec elSpec) |
|
ElGamalPrivateKeyImpl(DHPrivateKey key) |
|
ElGamalPrivateKeyImpl(DHPrivateKeySpec spec) |
|
ElGamalPrivateKeyImpl(ElGamalPrivateKey key) |
|
ElGamalPrivateKeyImpl(ElGamalPrivateKeySpec spec) |
|
ElGamalPrivateKeyImpl(PKCS8EncodedKeySpec spec) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed
protected ElGamalPrivateKeyImpl()
public ElGamalPrivateKeyImpl(ElGamalPrivateKey key)
public ElGamalPrivateKeyImpl(DHPrivateKey key)
public ElGamalPrivateKeyImpl(ElGamalPrivateKeySpec spec)
public ElGamalPrivateKeyImpl(DHPrivateKeySpec spec)
public ElGamalPrivateKeyImpl(BigInteger x, ElGamalParameterSpec elSpec)
public ElGamalPrivateKeyImpl(PKCS8EncodedKeySpec spec)
public String getAlgorithm()
getAlgorithm
in interface Key
public String getFormat()
public byte[] getEncoded()
getEncoded
in interface Key
public ElGamalParameterSpec getParameters()
getParameters
in interface ElGamalKey
public DHParameterSpec getParams()
public BigInteger getX()
getX
in interface DHPrivateKey
getX
in interface ElGamalPrivateKey