Class AsymmetricECKey
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.AsymmetricECKey
-
- All Implemented Interfaces:
AsymmetricKey
,Key
- Direct Known Subclasses:
AsymmetricECPrivateKey
,AsymmetricECPublicKey
public abstract class AsymmetricECKey extends java.lang.Object implements AsymmetricKey
Base class for Elliptic Curve (EC) keys.
-
-
Field Summary
Fields Modifier and Type Field Description protected Algorithm
algorithm
protected ECDomainParameters
domainParameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkApprovedOnlyModeStatus()
Algorithm
getAlgorithm()
Return the algorithm this Elliptic Curve key is for.ECDomainParameters
getDomainParameters()
Return the Elliptic Curve 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
-
algorithm
protected Algorithm algorithm
-
domainParameters
protected ECDomainParameters domainParameters
-
-
Method Detail
-
getAlgorithm
public Algorithm getAlgorithm()
Return the algorithm this Elliptic Curve key is for.- Specified by:
getAlgorithm
in interfaceKey
- Returns:
- the key's algorithm.
-
getDomainParameters
public ECDomainParameters getDomainParameters()
Return the Elliptic Curve domain parameters associated with this key.- Returns:
- the EC domain parameters for the key.
-
zeroize
protected void zeroize()
-
checkApprovedOnlyModeStatus
protected final void checkApprovedOnlyModeStatus()
-
-