public final class AsymmetricDSAPrivateKey extends AsymmetricDSAKey implements AsymmetricPrivateKey
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, isThreadCorrectMode, zeroizepublic 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 KeygetAlgorithm in class AsymmetricDSAKeypublic final DSADomainParameters getDomainParameters()
getDomainParameters in class AsymmetricDSAKeypublic final byte[] getEncoded()
AsymmetricKeygetEncoded in interface AsymmetricKeypublic java.math.BigInteger getX()
public void destroy()
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyablepublic int hashCode()
Keypublic boolean equals(java.lang.Object o)
Key