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, waitdestroy, isDestroyedprotected ElGamalPrivateKeyImpl()
public ElGamalPrivateKeyImpl(BigInteger x, ElGamalParameterSpec elSpec)
public ElGamalPrivateKeyImpl(DHPrivateKey key)
public ElGamalPrivateKeyImpl(DHPrivateKeySpec spec)
public ElGamalPrivateKeyImpl(ElGamalPrivateKey key)
public ElGamalPrivateKeyImpl(ElGamalPrivateKeySpec spec)
public ElGamalPrivateKeyImpl(PKCS8EncodedKeySpec spec) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic String getAlgorithm()
getAlgorithm in interface Keypublic byte[] getEncoded()
getEncoded in interface Keypublic String getFormat()
public ElGamalParameterSpec getParameters()
getParameters in interface ElGamalKeypublic DHParameterSpec getParams()
public BigInteger getX()
getX in interface DHPrivateKeygetX in interface ElGamalPrivateKey