public final class AsymmetricECGOST3410PrivateKey extends AsymmetricGOST3410Key<ECDomainParameters> implements AsymmetricPrivateKey
domainParameters
Constructor and Description |
---|
AsymmetricECGOST3410PrivateKey(Algorithm algorithm,
byte[] enc) |
AsymmetricECGOST3410PrivateKey(Algorithm algorithm,
GOST3410Parameters<ECDomainParameters> params,
java.math.BigInteger x) |
AsymmetricECGOST3410PrivateKey(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.
|
protected void |
finalize() |
Algorithm |
getAlgorithm()
Return the algorithm this GOST R 34.10 key is for.
|
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
GOST3410Parameters<ECDomainParameters> |
getParameters()
Return the domain parameters associated with this key.These will either
be for GOST R 34.10-1994 or GOST R 34.10-2001 depending on the key type.
|
java.math.BigInteger |
getS() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
checkApprovedOnlyModeStatus, zeroize
public AsymmetricECGOST3410PrivateKey(Algorithm algorithm, GOST3410Parameters<ECDomainParameters> params, java.math.BigInteger x)
public AsymmetricECGOST3410PrivateKey(Algorithm algorithm, byte[] enc)
public AsymmetricECGOST3410PrivateKey(Algorithm algorithm, PrivateKeyInfo privateKeyInfo)
public final byte[] getEncoded()
AsymmetricKey
getEncoded
in interface AsymmetricKey
public final Algorithm getAlgorithm()
getAlgorithm
in interface Key
getAlgorithm
in class AsymmetricGOST3410Key<ECDomainParameters>
public final GOST3410Parameters<ECDomainParameters> getParameters()
getParameters
in class AsymmetricGOST3410Key<ECDomainParameters>
public 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 int hashCode()
Key
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public boolean equals(java.lang.Object o)
Key