public class JCEElGamalPrivateKey extends java.lang.Object implements ElGamalPrivateKey, javax.crypto.interfaces.DHPrivateKey, PKCS12BagAttributeCarrier
| Modifier | Constructor and Description |
|---|---|
protected |
JCEElGamalPrivateKey() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
org.spongycastle.asn1.ASN1Encodable |
getBagAttribute(org.spongycastle.asn1.ASN1ObjectIdentifier oid) |
java.util.Enumeration |
getBagAttributeKeys() |
byte[] |
getEncoded()
Return a PKCS8 representation of the key.
|
java.lang.String |
getFormat()
return the encoding format we produce in getEncoded().
|
ElGamalParameterSpec |
getParameters() |
javax.crypto.spec.DHParameterSpec |
getParams() |
java.math.BigInteger |
getX() |
void |
setBagAttribute(org.spongycastle.asn1.ASN1ObjectIdentifier oid,
org.spongycastle.asn1.ASN1Encodable attribute) |
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic ElGamalParameterSpec getParameters()
getParameters in interface ElGamalKeypublic javax.crypto.spec.DHParameterSpec getParams()
getParams in interface javax.crypto.interfaces.DHKeypublic java.math.BigInteger getX()
getX in interface javax.crypto.interfaces.DHPrivateKeygetX in interface ElGamalPrivateKeypublic void setBagAttribute(org.spongycastle.asn1.ASN1ObjectIdentifier oid,
org.spongycastle.asn1.ASN1Encodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic org.spongycastle.asn1.ASN1Encodable getBagAttribute(org.spongycastle.asn1.ASN1ObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic java.util.Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrier