public class GOST3410PrivateKeyParameters extends GOST3410KeyParameters implements javax.security.auth.Destroyable
| Constructor and Description |
|---|
GOST3410PrivateKeyParameters(java.math.BigInteger x,
GOST3410Parameters params) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy this object, dropping its reference to the private value.
|
java.math.BigInteger |
getX() |
boolean |
isDestroyed() |
getParametersisPrivatepublic GOST3410PrivateKeyParameters(java.math.BigInteger x,
GOST3410Parameters params)
public java.math.BigInteger getX()
public void destroy()
As BigInteger is immutable the private value cannot be zeroized in place;
destruction drops the internal reference so the value becomes unreachable (cleared on
garbage collection). The (public) domain parameters are retained. After destruction
getX() throws IllegalStateException.
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyable