Module io.github.mmm.crypto
Class SignatureSignerImpl<S extends SignatureBinary>
- java.lang.Object
-
- io.github.mmm.crypto.algorithm.AbstractSecurityAlgorithm
-
- io.github.mmm.crypto.asymmetric.sign.SignatureProcessorImpl
-
- io.github.mmm.crypto.asymmetric.sign.SignatureSignerImpl<S>
-
- Type Parameters:
S- type ofSignatureBinary.
- All Implemented Interfaces:
CryptoAlgorithm,SignatureProcessor,SignatureSigner<S>,SignatureSignerSimple,CryptoChunker,CryptoProcessor
public class SignatureSignerImpl<S extends SignatureBinary> extends SignatureProcessorImpl implements SignatureSigner<S>
Implementation ofSignatureSigner.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description SignatureSignerImpl(Signature signature, SignatureFactory<S> factory)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ScreateSignature(byte[] signatureData)SsignAfterUpdate(boolean reset)byte[]signAfterUpdateRaw(boolean reset)-
Methods inherited from class io.github.mmm.crypto.asymmetric.sign.SignatureProcessorImpl
getAlgorithm, getSignature, reset, update
-
Methods inherited from class io.github.mmm.crypto.algorithm.AbstractSecurityAlgorithm
creationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
SignatureSignerImpl
public SignatureSignerImpl(Signature signature, SignatureFactory<S> factory)
The constructor.- Parameters:
signature- the underlyingSignature.factory- theSignatureFactory.
-
-
Method Detail
-
signAfterUpdate
public S signAfterUpdate(boolean reset)
- Specified by:
signAfterUpdatein interfaceSignatureSigner<S extends SignatureBinary>- Parameters:
reset- -truetoresetafter the signature has been generated,falseotherwise.- Returns:
- the final signature generated for the
processed data.
-
createSignature
protected S createSignature(byte[] signatureData)
- Parameters:
signatureData- theraw signature.- Returns:
- the
SignatureBinary.
-
signAfterUpdateRaw
public byte[] signAfterUpdateRaw(boolean reset)
- Specified by:
signAfterUpdateRawin interfaceSignatureSignerSimple- Parameters:
reset- -truetoresetafter the signature has been generated,falseotherwise.- Returns:
- the final signature generated for the
processed data.
-
-