Module io.github.mmm.crypto
Interface SignatureVerifierSimple
-
- All Superinterfaces:
CryptoAlgorithm,CryptoChunker,CryptoProcessor,SignatureProcessor
- All Known Subinterfaces:
SignatureVerifier<S>
- All Known Implementing Classes:
SignatureVerifierImpl,SignatureVerifierImplCryptorWithHash,SignatureVerifierImplEcBc,SignatureVerifierImplWithHash
public interface SignatureVerifierSimple extends SignatureProcessor
ExtendsSignatureProcessorwith ability toverifya message with a given expected signature.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanverify(byte[] input, byte[] signature)default booleanverify(byte[] input, byte[] signature, int signatureOffset, int signatureLength)default booleanverify(byte[] input, int inputOffset, int inputLength, byte[] signature, int signatureOffset, int signatureLength)default booleanverifyAfterUpdate(byte[] signature)booleanverifyAfterUpdate(byte[] signature, int offset, int length)-
Methods inherited from interface io.github.mmm.crypto.algorithm.CryptoAlgorithm
getAlgorithm
-
Methods inherited from interface io.github.mmm.crypto.CryptoChunker
update, update, update
-
-
-
-
Method Detail
-
verifyAfterUpdate
default boolean verifyAfterUpdate(byte[] signature)
- Parameters:
signature- thebytearray with the signature as raw data.- Returns:
trueif the given signature is valid,falseotherwise.
-
verifyAfterUpdate
boolean verifyAfterUpdate(byte[] signature, int offset, int length)- 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.
-
verify
default boolean verify(byte[] input, byte[] signature)- Parameters:
input- the message data for which thesignaturewas created.signature- thebytearray with the signature as raw data.- Returns:
trueif the given signature is valid,falseotherwise.
-
verify
default boolean verify(byte[] input, byte[] signature, int signatureOffset, int signatureLength)- Parameters:
input- the message data for which thesignaturewas created.signature- thebytearray with the signature as raw data.signatureOffset- the index where to start reading data fromsignature.signatureLength- the number of bytes to read fromsignature.- Returns:
trueif the given signature is valid,falseotherwise.
-
verify
default boolean verify(byte[] input, int inputOffset, int inputLength, byte[] signature, int signatureOffset, int signatureLength)- Parameters:
input- the message data for which thesignaturewas created.inputOffset- the index where to start reading data frominput.inputLength- the number of bytes to read frominput.signature- thebytearray with the signature as raw data.signatureOffset- the index where to start reading data fromsignature.signatureLength- the number of bytes to read fromsignature.- Returns:
trueif the given signature is valid,falseotherwise.
-
-