public class BCDHPrivateKey extends Object implements DHPrivateKey, PKCS12BagAttributeCarrier
| Modifier | Constructor and Description |
|---|---|
protected |
BCDHPrivateKey() |
|
BCDHPrivateKey(PrivateKeyInfo info) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAlgorithm() |
ASN1Encodable |
getBagAttribute(ASN1ObjectIdentifier oid) |
Enumeration |
getBagAttributeKeys() |
byte[] |
getEncoded()
Return a PKCS8 representation of the key.
|
String |
getFormat()
return the encoding format we produce in getEncoded().
|
DHParameterSpec |
getParams() |
BigInteger |
getX() |
int |
hashCode() |
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, isDestroyedprotected BCDHPrivateKey()
public BCDHPrivateKey(PrivateKeyInfo info) throws IOException
IOExceptionpublic String getAlgorithm()
getAlgorithm in interface Keypublic String getFormat()
public byte[] getEncoded()
getEncoded in interface Keypublic DHParameterSpec getParams()
public BigInteger getX()
getX in interface DHPrivateKeypublic void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrierCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.