Class AsymmetricDHKey
java.lang.Object
org.bouncycastle.crypto.asymmetric.AsymmetricDHKey
- All Implemented Interfaces:
AsymmetricKey,Key
- Direct Known Subclasses:
AsymmetricDHPrivateKey,AsymmetricDHPublicKey
Base class for Diffie-Hellman keys.
-
Method Summary
Modifier and TypeMethodDescriptionprotected final voidReturn the algorithm this Diffie-Hellman key is for.Return the Diffie-Hellman domain parameters associated with this key.protected final booleanprotected voidzeroize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bouncycastle.crypto.AsymmetricKey
getEncoded
-
Method Details
-
getAlgorithm
Return the algorithm this Diffie-Hellman key is for.- Specified by:
getAlgorithmin interfaceKey- Returns:
- the key's algorithm.
-
getDomainParameters
Return the Diffie-Hellman domain parameters associated with this key.- Returns:
- the Diffie-Hellman domain parameters for this key.
-
isThreadCorrectMode
protected final boolean isThreadCorrectMode() -
checkApprovedOnlyModeStatus
protected final void checkApprovedOnlyModeStatus() -
zeroize
protected void zeroize()
-