Package org.bouncycastle.crypto.params
Class DSAPrivateKeyParameters
- java.lang.Object
-
- org.bouncycastle.crypto.params.AsymmetricKeyParameter
-
- org.bouncycastle.crypto.params.DSAKeyParameters
-
- org.bouncycastle.crypto.params.DSAPrivateKeyParameters
-
- All Implemented Interfaces:
javax.security.auth.Destroyable,CipherParameters
public class DSAPrivateKeyParameters extends DSAKeyParameters implements javax.security.auth.Destroyable
-
-
Constructor Summary
Constructors Constructor Description DSAPrivateKeyParameters(java.math.BigInteger x, DSAParameters params)
-
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.BigIntegergetX()booleanisDestroyed()-
Methods inherited from class org.bouncycastle.crypto.params.DSAKeyParameters
getParameters
-
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
-
-
-
Constructor Detail
-
DSAPrivateKeyParameters
public DSAPrivateKeyParameters(java.math.BigInteger x, DSAParameters params)
-
-
Method Detail
-
getX
public java.math.BigInteger getX()
-
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.- Specified by:
destroyin interfacejavax.security.auth.Destroyable
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyedin interfacejavax.security.auth.Destroyable
-
-