Module io.github.mmm.crypto
Class SignatureVerifierImpl<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.SignatureVerifierImpl<S>
-
- Type Parameters:
S- type ofSignatureBinary.
- All Implemented Interfaces:
CryptoAlgorithm,SignatureProcessor,SignatureVerifier<S>,SignatureVerifierSimple,CryptoChunker,CryptoProcessor
public class SignatureVerifierImpl<S extends SignatureBinary> extends SignatureProcessorImpl implements SignatureVerifier<S>
Implementation ofSignatureVerifier.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description SignatureVerifierImpl(Signature signature)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverifyAfterUpdate(byte[] signature, int offset, int length)-
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, process, reset
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureVerifier
verify, verify, verify, verifyAfterUpdate, verifyUnsafe
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureVerifierSimple
verify, verify, verify, verifyAfterUpdate
-
-
-
-
Method Detail
-
verifyAfterUpdate
public boolean verifyAfterUpdate(byte[] signature, int offset, int length)- Specified by:
verifyAfterUpdatein interfaceSignatureVerifierSimple- Parameters:
signature- thebytearray with the signature as raw data.offset- the index where to start reading data fromsignature.length- the number of bytes to read fromsignature.- Returns:
trueif the given signature is valid,falseotherwise.
-
-