Class DHPrivateKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.crypto.params.DHKeyParameters
org.bouncycastle.crypto.params.DHPrivateKeyParameters
- All Implemented Interfaces:
Destroyable, CipherParameters
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DHKeyParameters
getParametersMethods inherited from class AsymmetricKeyParameter
isPrivate
-
Constructor Details
-
DHPrivateKeyParameters
-
-
Method Details
-
getX
-
hashCode
public int hashCode()- Overrides:
hashCodein classDHKeyParameters
-
equals
- Overrides:
equalsin classDHKeyParameters
-
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). The (public) domain parameters are retained. After destructiongetX()throwsIllegalStateException,hashCode()retains its pre-destruction value and the object is equal only to itself.- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-