public class JCEElGamalPrivateKey extends Object implements ElGamalPrivateKey, DHPrivateKey, PKCS12BagAttributeCarrier
| Modifier | Constructor and Description |
|---|---|
protected |
JCEElGamalPrivateKey() |
| Modifier and Type | Method and Description |
|---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedpublic String getAlgorithm()
getAlgorithm in interface Keypublic String getFormat()
public byte[] getEncoded()
getEncoded in interface Keypublic ElGamalParameterSpec getParameters()
getParameters in interface ElGamalKeypublic DHParameterSpec getParams()
public BigInteger getX()
getX in interface DHPrivateKeygetX in interface ElGamalPrivateKeypublic void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic DEREncodable getBagAttribute(DERObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrierCopyright © 2015. All rights reserved.