public class BCDHPrivateKey extends java.lang.Object implements javax.crypto.interfaces.DHPrivateKey, PKCS12BagAttributeCarrier
| Modifier | Constructor and Description |
|---|---|
protected |
BCDHPrivateKey() |
|
BCDHPrivateKey(PrivateKeyInfo info) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
ASN1Encodable |
getBagAttribute(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().
|
javax.crypto.spec.DHParameterSpec |
getParams() |
java.math.BigInteger |
getX() |
int |
hashCode() |
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute) |
protected BCDHPrivateKey()
public BCDHPrivateKey(PrivateKeyInfo info) throws java.io.IOException
java.io.IOExceptionpublic 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 javax.crypto.spec.DHParameterSpec getParams()
getParams in interface javax.crypto.interfaces.DHKeypublic java.math.BigInteger getX()
getX in interface javax.crypto.interfaces.DHPrivateKeypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic java.util.Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrier