public class ECPrivateKeyParameters extends ECKeyParameters implements javax.security.auth.Destroyable
| Constructor and Description |
|---|
ECPrivateKeyParameters(java.math.BigInteger d,
ECDomainParameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy this object, dropping its reference to the private value.
|
java.math.BigInteger |
getD() |
boolean |
isDestroyed() |
getParametersisPrivatepublic ECPrivateKeyParameters(java.math.BigInteger d,
ECDomainParameters parameters)
public java.math.BigInteger getD()
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). After destruction getD() throws
IllegalStateException.
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyable