S - type of SignatureBinary.public class SignatureSignerImplWithHash<S extends SignatureBinary> extends SignatureProcessorImplWithHash implements SignatureSigner<S>
| Modifier and Type | Field and Description |
|---|---|
private SignatureSigner<S> |
signer |
| Constructor and Description |
|---|
SignatureSignerImplWithHash(HashCreator hashGenerator,
SignatureSigner<S> signer)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected CryptoAlgorithm |
getSignatureAlgorithm() |
void |
reset()
Will reset the internal state of this object.
|
S |
signAfterUpdate(boolean reset) |
byte[] |
signAfterUpdateRaw(boolean reset) |
getAlgorithm, getHashGenerator, updatecreationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsign, sign, signprocessupdate, update, updateprocess, process, processgetAlgorithmprivate final SignatureSigner<S extends SignatureBinary> signer
public SignatureSignerImplWithHash(HashCreator hashGenerator, SignatureSigner<S> signer)
hashGenerator - the HashCreator to apply as extension.signer - the SignatureSigner to extend.protected CryptoAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in class SignatureProcessorImplWithHashCryptoAlgorithm to extend.public S signAfterUpdate(boolean reset)
signAfterUpdate in interface SignatureSigner<S extends SignatureBinary>reset - - true to reset after the signature has been generated, false
otherwise.processed data.public byte[] signAfterUpdateRaw(boolean reset)
signAfterUpdateRaw in interface SignatureSignerSimplereset - - true to reset after the signature has been generated, false
otherwise.processed data.public void reset()
CryptoProcessorCryptor may not reusable. It is therefore preferable to always create a
fresh instance for each cryptographic task.reset in interface CryptoProcessorreset in class SignatureProcessorImplWithHashMessageDigest.reset()Copyright © 2001–2019 mmm-Team. All rights reserved.