public class BCDSAPrivateKey extends java.lang.Object implements java.security.interfaces.DSAPrivateKey, PKCS12BagAttributeCarrier
Modifier | Constructor and Description |
---|---|
protected |
BCDSAPrivateKey() |
|
BCDSAPrivateKey(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().
|
java.security.interfaces.DSAParams |
getParams() |
java.math.BigInteger |
getX() |
int |
hashCode() |
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute) |
protected BCDSAPrivateKey()
public BCDSAPrivateKey(PrivateKeyInfo info) throws java.io.IOException
java.io.IOException
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public java.security.interfaces.DSAParams getParams()
getParams
in interface java.security.interfaces.DSAKey
public java.math.BigInteger getX()
getX
in interface java.security.interfaces.DSAPrivateKey
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute
in interface PKCS12BagAttributeCarrier
public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute
in interface PKCS12BagAttributeCarrier
public java.util.Enumeration getBagAttributeKeys()
getBagAttributeKeys
in interface PKCS12BagAttributeCarrier