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, zeroize
public 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()
AsymmetricKey
getEncoded
in interface AsymmetricKey
public final Algorithm getAlgorithm()
getAlgorithm
in interface Key
getAlgorithm
in class AsymmetricDSTU4145Key
public final DSTU4145Parameters getParameters()
getParameters
in class AsymmetricDSTU4145Key
public final java.math.BigInteger getS()
public void destroy()
destroy
in interface javax.security.auth.Destroyable
public boolean isDestroyed()
isDestroyed
in interface javax.security.auth.Destroyable
public boolean equals(java.lang.Object o)
Key