Class AsymmetricDHKey
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.AsymmetricDHKey
-
- All Implemented Interfaces:
AsymmetricKey
,Key
- Direct Known Subclasses:
AsymmetricDHPrivateKey
,AsymmetricDHPublicKey
public abstract class AsymmetricDHKey extends java.lang.Object implements AsymmetricKey
Base class for Diffie-Hellman keys.
-
-
Field Summary
Fields Modifier and Type Field Description protected Algorithm
algorithm
protected boolean
approvedModeOnly
protected DHDomainParameters
domainParameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkApprovedOnlyModeStatus()
Algorithm
getAlgorithm()
Return the algorithm this Diffie-Hellman key is for.DHDomainParameters
getDomainParameters()
Return the Diffie-Hellman domain parameters associated with this key.protected void
zeroize()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.crypto.AsymmetricKey
getEncoded
-
-
-
-
Field Detail
-
approvedModeOnly
protected final boolean approvedModeOnly
-
algorithm
protected Algorithm algorithm
-
domainParameters
protected DHDomainParameters domainParameters
-
-
Method Detail
-
getAlgorithm
public Algorithm getAlgorithm()
Return the algorithm this Diffie-Hellman key is for.- Specified by:
getAlgorithm
in interfaceKey
- Returns:
- the key's algorithm.
-
getDomainParameters
public DHDomainParameters getDomainParameters()
Return the Diffie-Hellman domain parameters associated with this key.- Returns:
- the Diffie-Hellman domain parameters for this key.
-
checkApprovedOnlyModeStatus
protected final void checkApprovedOnlyModeStatus()
-
zeroize
protected void zeroize()
-
-