Top Description Fields Constructors Methods
org.bouncycastle.crypto.asymmetric

public abstract Class AsymmetricECKey

extends Object
implements AsymmetricKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.Key
Known Direct Subclasses
org.bouncycastle.crypto.asymmetric.AsymmetricECPrivateKey, org.bouncycastle.crypto.asymmetric.AsymmetricECPublicKey
Imports
org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.crypto.Algorithm, .AsymmetricKey, .CryptoServicesRegistrar, org.bouncycastle.crypto.fips.FipsUnapprovedOperationError

Base class for Elliptic Curve (EC) keys.

Field Summary

Modifier and TypeField and Description
protected Algorithm
private final boolean
protected ECDomainParameters

Constructor Summary

AccessConstructor and Description
pack-priv
AsymmetricECKey(Algorithm algorithm, ECDomainParameters domainParameters)

pack-priv
AsymmetricECKey(Algorithm algorithm, ECDomainParametersID domainParameterID)

pack-priv
AsymmetricECKey(Algorithm algorithm, AlgorithmIdentifier algorithmIdentifier)

Method Summary

Modifier and TypeMethod and Description
protected final void
public Algorithm

Returns:

the key's algorithm.
getAlgorithm
()

Implements org.bouncycastle.crypto.Key.getAlgorithm.

Return the algorithm this Elliptic Curve key is for.
public ECDomainParameters

Returns:

the EC domain parameters for the key.
getDomainParameters
()

Return the Elliptic Curve domain parameters associated with this key.

protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
protected Algorithm algorithm
approvedModeOnlyback to summary
private final boolean approvedModeOnly
domainParametersback to summary
protected ECDomainParameters domainParameters

Constructor Detail

AsymmetricECKeyback to summary
pack-priv AsymmetricECKey(Algorithm algorithm, ECDomainParameters domainParameters)
AsymmetricECKeyback to summary
pack-priv AsymmetricECKey(Algorithm algorithm, ECDomainParametersID domainParameterID)
AsymmetricECKeyback to summary
pack-priv AsymmetricECKey(Algorithm algorithm, AlgorithmIdentifier algorithmIdentifier)

Method Detail

checkApprovedOnlyModeStatusback to summary
protected final void checkApprovedOnlyModeStatus()
getAlgorithmback to summary
public Algorithm getAlgorithm()

Implements org.bouncycastle.crypto.Key.getAlgorithm.

Return the algorithm this Elliptic Curve key is for.

Returns:Algorithm

the key's algorithm.

getDomainParametersback to summary
public ECDomainParameters getDomainParameters()

Return the Elliptic Curve domain parameters associated with this key.

Returns:ECDomainParameters

the EC domain parameters for the key.

zeroizeback to summary
protected void zeroize()