public final class AsymmetricDSTU4145PrivateKey extends AsymmetricDSTU4145Key implements AsymmetricPrivateKey
dstu4145Identifier, parameters| Constructor and Description |
|---|
AsymmetricDSTU4145PrivateKey(Algorithm ecAlg,
byte[] encoding) |
AsymmetricDSTU4145PrivateKey(Algorithm algorithm,
DSTU4145Parameters parameters,
java.math.BigInteger s) |
AsymmetricDSTU4145PrivateKey(Algorithm ecAlg,
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 DSTU4145 key is for.
|
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
DSTU4145Parameters |
getParameters()
Return the domain parameters for this DSTU4145 key.
|
java.math.BigInteger |
getS() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
checkApprovedOnlyModeStatus, isThreadCorrectMode, reverseBytes, zeroizepublic AsymmetricDSTU4145PrivateKey(Algorithm algorithm, DSTU4145Parameters parameters, java.math.BigInteger s)
public AsymmetricDSTU4145PrivateKey(Algorithm ecAlg, byte[] encoding)
public AsymmetricDSTU4145PrivateKey(Algorithm ecAlg, PrivateKeyInfo privateKeyInfo)
public final byte[] getEncoded()
AsymmetricKeygetEncoded in interface AsymmetricKeypublic final Algorithm getAlgorithm()
getAlgorithm in interface KeygetAlgorithm in class AsymmetricDSTU4145Keypublic final DSTU4145Parameters getParameters()
getParameters in class AsymmetricDSTU4145Keypublic final java.math.BigInteger getS()
public void destroy()
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyablepublic boolean equals(java.lang.Object o)
Key