S - type of SignatureBinary.public class SignatureVerifierImplWithHash<S extends SignatureBinary> extends SignatureProcessorImplWithHash implements SignatureVerifier<S>
| Modifier and Type | Field and Description |
|---|---|
private SignatureVerifier<S> |
verifier |
| Constructor and Description |
|---|
SignatureVerifierImplWithHash(HashCreator hashGenerator,
SignatureVerifier<S> verifier)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SignatureVerifier<S> |
getSignatureAlgorithm() |
void |
reset()
Will reset the internal state of this object.
|
boolean |
verifyAfterUpdate(byte[] signature,
int offset,
int length) |
boolean |
verifyAfterUpdate(S signature) |
getAlgorithm, getHashGenerator, updatecreationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitverify, verify, verify, verifyUnsafeverify, verify, verify, verifyAfterUpdateupdate, update, updateprocess, process, process, processgetAlgorithmprivate final SignatureVerifier<S extends SignatureBinary> verifier
public SignatureVerifierImplWithHash(HashCreator hashGenerator, SignatureVerifier<S> verifier)
hashGenerator - the HashCreator to apply as extension.verifier - the SignatureVerifier to extend.protected SignatureVerifier<S> 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 boolean verifyAfterUpdate(S signature)
verifyAfterUpdate in interface SignatureVerifier<S extends SignatureBinary>signature - the byte array with the signature as raw data.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.