public class SignatureSignerImplCryptorWithHash extends SignatureProcessorImplWithHash implements SignatureSigner<SignatureBinary>
| Constructor and Description |
|---|
SignatureSignerImplCryptorWithHash(HashCreator hashGenerator,
Encryptor encryptor)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected CryptoAlgorithm |
getSignatureAlgorithm() |
void |
reset()
Will reset the internal state of this object.
|
SignatureGeneric |
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 Encryptor encryptor
public SignatureSignerImplCryptorWithHash(HashCreator hashGenerator, Encryptor encryptor)
hashGenerator - the HashCreator to apply as extension.encryptor - the Encryptor to use.protected CryptoAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in class SignatureProcessorImplWithHashCryptoAlgorithm to extend.public SignatureGeneric signAfterUpdate(boolean reset)
signAfterUpdate in interface SignatureSigner<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.