Package org.bouncycastle.crypto.params
Class ECPrivateKeyParameters
- java.lang.Object
-
- org.bouncycastle.crypto.params.AsymmetricKeyParameter
-
- org.bouncycastle.crypto.params.ECKeyParameters
-
- org.bouncycastle.crypto.params.ECPrivateKeyParameters
-
- All Implemented Interfaces:
javax.security.auth.Destroyable,CipherParameters
public class ECPrivateKeyParameters extends ECKeyParameters implements javax.security.auth.Destroyable
-
-
Constructor Summary
Constructors Constructor Description ECPrivateKeyParameters(java.math.BigInteger d, ECDomainParameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy this object, dropping its reference to the private value.java.math.BigIntegergetD()booleanisDestroyed()-
Methods inherited from class org.bouncycastle.crypto.params.ECKeyParameters
getParameters
-
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
-
-
-
Constructor Detail
-
ECPrivateKeyParameters
public ECPrivateKeyParameters(java.math.BigInteger d, ECDomainParameters parameters)
-
-
Method Detail
-
getD
public java.math.BigInteger getD()
-
destroy
public void destroy()
Destroy this object, dropping its reference to the private value.As
BigIntegeris immutable the private value cannot be zeroized in place; destruction drops the internal reference so the value becomes unreachable (cleared on garbage collection). After destructiongetD()throwsIllegalStateException.- Specified by:
destroyin interfacejavax.security.auth.Destroyable
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyedin interfacejavax.security.auth.Destroyable
-
-