Module io.github.mmm.crypto.bc
Class AsymmetricAccessEcBc<S extends SignatureEcBc>
- java.lang.Object
-
- io.github.mmm.crypto.CryptoAccess
-
- io.github.mmm.crypto.asymmetric.access.AsymmetricAccess<S,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey,AsymmetricKeyPairEcBc,AsymmetricKeyCreatorEcBc>
-
- io.github.mmm.crypto.asymmetric.access.ec.bc.AsymmetricAccessEcBc<S>
-
- Type Parameters:
S
- type ofSignatureEcBc
.
- All Implemented Interfaces:
AbstractCryptoFactory
,AsymmetricCryptorFactory<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey>
,AsymmetricKeyCreatorFactory<AsymmetricKeyCreatorEcBc>
,SignatureFactory<S>
,SignatureProcessorFactory<S,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey>
,CryptorFactory
,HashFactory
,KeyCreatorFactory
- Direct Known Subclasses:
Curve25519
,Secp256k1
public abstract class AsymmetricAccessEcBc<S extends SignatureEcBc> extends AsymmetricAccess<S,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey,AsymmetricKeyPairEcBc,AsymmetricKeyCreatorEcBc>
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.bouncycastle.jce.spec.ECParameterSpec
ecParameters
TheECParameterSpec
of the elliptic curve.-
Fields inherited from class io.github.mmm.crypto.asymmetric.access.AsymmetricAccess
cryptorConfig, randomFactory
-
-
Constructor Summary
Constructors Constructor Description AsymmetricAccessEcBc(org.bouncycastle.jce.spec.ECParameterSpec ecParameters, SignatureFactoryEcBc<S> signatureFactory, HashConfig hashConfig, RandomFactory randomFactory)
The constructor.AsymmetricAccessEcBc(org.bouncycastle.jce.spec.ECParameterSpec ecParameters, SignatureConfig<S> signatureConfig, AsymmetricCryptorConfigEcIes<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey> cryptorConfig, RandomFactory randomFactory)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsymmetricKeyCreatorEcBc
newKeyCreator()
-
Methods inherited from class io.github.mmm.crypto.asymmetric.access.AsymmetricAccess
createSignature, getCryptorConfig, getSignatureConfig, getSignatureFactoryWithoutHash, newDecryptor, newDecryptorUnsafe, newEncryptor, newEncryptorUnsafe, newHashCreator, newSigner, newVerifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureProcessorFactory
newSignerUnsafe, newVerifierUnsafe
-
-
-
-
Constructor Detail
-
AsymmetricAccessEcBc
public AsymmetricAccessEcBc(org.bouncycastle.jce.spec.ECParameterSpec ecParameters, SignatureConfig<S> signatureConfig, AsymmetricCryptorConfigEcIes<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey> cryptorConfig, RandomFactory randomFactory)
The constructor.- Parameters:
ecParameters
- theECParameterSpec
.signatureConfig
- theSignatureConfig
.cryptorConfig
- theAsymmetricCryptorConfigEcIes
.randomFactory
- the optionalRandomFactory
.
-
AsymmetricAccessEcBc
public AsymmetricAccessEcBc(org.bouncycastle.jce.spec.ECParameterSpec ecParameters, SignatureFactoryEcBc<S> signatureFactory, HashConfig hashConfig, RandomFactory randomFactory)
The constructor.- Parameters:
ecParameters
- theECParameterSpec
.signatureFactory
- theSignatureFactoryEcBc
.hashConfig
- theHashConfig
for the hash used for signatures.randomFactory
- theRandomFactory
.
-
-
Method Detail
-
newKeyCreator
public AsymmetricKeyCreatorEcBc newKeyCreator()
- Returns:
- a new instance of
KeyCreator
. May be reused but is not guaranteed to be thread-safe.
-
-