public class SignatureVerifierImplCryptorWithHash extends SignatureProcessorImplWithHash implements SignatureVerifier<SignatureBinary>
| Constructor and Description |
|---|
SignatureVerifierImplCryptorWithHash(HashCreator hashGenerator,
Decryptor decryptor)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Decryptor |
getSignatureAlgorithm() |
void |
reset()
Will reset the internal state of this object.
|
boolean |
verifyAfterUpdate(byte[] signature,
int offset,
int length) |
getAlgorithm, getHashGenerator, updatecreationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitverify, verify, verify, verifyAfterUpdate, verifyUnsafeverify, verify, verify, verifyAfterUpdateupdate, update, updateprocess, process, process, processgetAlgorithmprivate final Decryptor decryptor
public SignatureVerifierImplCryptorWithHash(HashCreator hashGenerator, Decryptor decryptor)
hashGenerator - the HashCreator to apply as extension.decryptor - the Decryptor to extend.protected Decryptor getSignatureAlgorithm()
getSignatureAlgorithm in class SignatureProcessorImplWithHashCryptoAlgorithm to extend.public boolean verifyAfterUpdate(byte[] signature,
int offset,
int length)
verifyAfterUpdate in interface SignatureVerifierSimplesignature - the byte array with the signature as raw data.offset - the index where to start reading data from signature.length - the number of bytes to read from signature.true if the given signature is valid, false otherwise.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.