Bouncy Castle Cryptography Library 1.33 | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.bouncycastle.jce.provider.JCEElGamalPrivateKey
public class JCEElGamalPrivateKey
extends java.lang.Object
implements ElGamalPrivateKey, DHPrivateKey, PKCS12BagAttributeCarrier
Constructor Summary | |
Method Summary | |
String | |
DEREncodable | |
Enumeration | |
byte[] |
|
String |
|
ElGamalParameterSpec | |
DHParameterSpec | |
BigInteger |
|
void |
|
public String getAlgorithm()
public DEREncodable getBagAttribute(DERObjectIdentifier oid)
- Specified by:
- getBagAttribute in interface PKCS12BagAttributeCarrier
public Enumeration getBagAttributeKeys()
- Specified by:
- getBagAttributeKeys in interface PKCS12BagAttributeCarrier
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()
- Specified by:
- getParameters in interface ElGamalKey
public DHParameterSpec getParams()
public void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
- Specified by:
- setBagAttribute in interface PKCS12BagAttributeCarrier