public final class AsymmetricDSAPrivateKey extends AsymmetricDSAKey implements AsymmetricPrivateKey, javax.security.auth.Destroyable
algorithm, approvedModeOnly, domainParameters
Constructor and Description |
---|
AsymmetricDSAPrivateKey(Algorithm algorithm,
byte[] enc) |
AsymmetricDSAPrivateKey(Algorithm algorithm,
DSADomainParameters params,
java.math.BigInteger x) |
AsymmetricDSAPrivateKey(Algorithm algorithm,
PrivateKeyInfo privateKeyInfo) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
boolean |
equals(java.lang.Object o)
Return true if o is an equivalent key to this.
|
Algorithm |
getAlgorithm()
Return the algorithm this DSA key is for.
|
DSADomainParameters |
getDomainParameters()
Return the DSA domain parameters associated with this key.
|
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
java.math.BigInteger |
getX() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
checkApprovedOnlyModeStatus, zeroize
public AsymmetricDSAPrivateKey(Algorithm algorithm, DSADomainParameters params, java.math.BigInteger x)
public AsymmetricDSAPrivateKey(Algorithm algorithm, byte[] enc)
public AsymmetricDSAPrivateKey(Algorithm algorithm, PrivateKeyInfo privateKeyInfo)
public final Algorithm getAlgorithm()
getAlgorithm
in interface Key
getAlgorithm
in class AsymmetricDSAKey
public final DSADomainParameters getDomainParameters()
getDomainParameters
in class AsymmetricDSAKey
public final byte[] getEncoded()
AsymmetricKey
getEncoded
in interface AsymmetricKey
public final java.math.BigInteger getX()
public void destroy()
destroy
in interface javax.security.auth.Destroyable
public boolean isDestroyed()
isDestroyed
in interface javax.security.auth.Destroyable
public int hashCode()
Key
public boolean equals(java.lang.Object o)
Key