public final class AsymmetricGOST3410PrivateKey extends AsymmetricGOST3410Key<GOST3410DomainParameters> implements AsymmetricPrivateKey
domainParameters, ecAcceptable, fpAcceptable
Constructor and Description |
---|
AsymmetricGOST3410PrivateKey(Algorithm algorithm,
byte[] enc) |
AsymmetricGOST3410PrivateKey(Algorithm algorithm,
GOST3410Parameters<GOST3410DomainParameters> params,
java.math.BigInteger x) |
AsymmetricGOST3410PrivateKey(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 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<GOST3410DomainParameters> |
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 |
getX() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
checkApprovedOnlyModeStatus, isThreadCorrectMode, zeroize
public AsymmetricGOST3410PrivateKey(Algorithm algorithm, GOST3410Parameters<GOST3410DomainParameters> params, java.math.BigInteger x)
public AsymmetricGOST3410PrivateKey(Algorithm algorithm, byte[] enc)
public AsymmetricGOST3410PrivateKey(Algorithm algorithm, PrivateKeyInfo privateKeyInfo)
public final Algorithm getAlgorithm()
getAlgorithm
in interface Key
getAlgorithm
in class AsymmetricGOST3410Key<GOST3410DomainParameters>
public final GOST3410Parameters<GOST3410DomainParameters> getParameters()
getParameters
in class AsymmetricGOST3410Key<GOST3410DomainParameters>
public final byte[] getEncoded()
AsymmetricKey
getEncoded
in interface AsymmetricKey
public 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