public class BCDSAPrivateKey extends Object implements DSAPrivateKey, PKCS12BagAttributeCarrier
Modifier | Constructor and Description |
---|---|
protected |
BCDSAPrivateKey() |
|
BCDSAPrivateKey(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().
|
DSAParams |
getParams() |
BigInteger |
getX() |
int |
hashCode() |
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, isDestroyed
protected BCDSAPrivateKey()
public BCDSAPrivateKey(PrivateKeyInfo info) throws IOException
IOException
public String getAlgorithm()
getAlgorithm
in interface Key
public String getFormat()
public byte[] getEncoded()
getEncoded
in interface Key
public BigInteger getX()
getX
in interface DSAPrivateKey
public void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute
in interface PKCS12BagAttributeCarrier
public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute
in interface PKCS12BagAttributeCarrier
public Enumeration getBagAttributeKeys()
getBagAttributeKeys
in interface PKCS12BagAttributeCarrier
Copyright © 2021 BouncyCastle.org. All rights reserved.