Module io.github.mmm.crypto.bc
Class SignatureSignerImplEcBc<S extends SignatureEcBc>
- java.lang.Object
-
- io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureProcessorImplEcBc<S>
-
- io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureSignerImplEcBc<S>
-
- Type Parameters:
S
- type ofSignatureBinary
.
- All Implemented Interfaces:
CryptoAlgorithm
,SignatureProcessor
,SignatureSigner<S>
,SignatureSignerSimple
,CryptoChunker
,CryptoProcessor
public class SignatureSignerImplEcBc<S extends SignatureEcBc> extends SignatureProcessorImplEcBc<S> implements SignatureSigner<S>
Implementation ofSignatureSigner
forSignatureEcBc
.- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureProcessorImplEcBc
data, signer
-
-
Constructor Summary
Constructors Constructor Description SignatureSignerImplEcBc(SignatureConfigEcDsa<S> config, org.bouncycastle.crypto.signers.ECDSASigner signer, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey
getPublicKey()
S
signAfterUpdate(boolean reset)
byte[]
signAfterUpdateRaw(boolean reset)
-
Methods inherited from class io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureProcessorImplEcBc
getAlgorithm, getConfig, getSignatureFactory, reset, update
-
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.algorithm.CryptoAlgorithm
getAlgorithm
-
Methods inherited from interface io.github.mmm.crypto.CryptoChunker
update, update, update
-
Methods inherited from interface io.github.mmm.crypto.CryptoProcessor
process, process, process, reset
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureSigner
sign, sign, sign
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureSignerSimple
process
-
-
-
-
Constructor Detail
-
SignatureSignerImplEcBc
public SignatureSignerImplEcBc(SignatureConfigEcDsa<S> config, org.bouncycastle.crypto.signers.ECDSASigner signer, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
The constructor.- Parameters:
config
- theconfig
.signer
- the underlyingECDSASigner
.publicKey
- thepublic key
.
-
-
Method Detail
-
getPublicKey
protected org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey getPublicKey()
- Returns:
- the
BCECPublicKey
.
-
signAfterUpdate
public S signAfterUpdate(boolean reset)
- Specified by:
signAfterUpdate
in interfaceSignatureSigner<S extends SignatureEcBc>
- Parameters:
reset
- -true
toreset
after the signature has been generated,false
otherwise.- Returns:
- the final signature generated for the
processed data
.
-
signAfterUpdateRaw
public byte[] signAfterUpdateRaw(boolean reset)
- Specified by:
signAfterUpdateRaw
in interfaceSignatureSignerSimple
- Parameters:
reset
- -true
toreset
after the signature has been generated,false
otherwise.- Returns:
- the final signature generated for the
processed data
.
-
-