public class DSAPrivateKeyParameters extends DSAKeyParameters implements javax.security.auth.Destroyable
| Constructor and Description |
|---|
DSAPrivateKeyParameters(java.math.BigInteger x,
DSAParameters 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 DSAPrivateKeyParameters(java.math.BigInteger x,
DSAParameters 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