Module io.github.mmm.crypto
Interface SignatureVerifier<S extends SignatureBinary>
-
- Type Parameters:
S- type ofSignatureBinary.
- All Superinterfaces:
CryptoAlgorithm,CryptoChunker,CryptoProcessor,SignatureProcessor,SignatureVerifierSimple
- All Known Implementing Classes:
SignatureVerifierImpl,SignatureVerifierImplCryptorWithHash,SignatureVerifierImplEcBc,SignatureVerifierImplWithHash
public interface SignatureVerifier<S extends SignatureBinary> extends SignatureVerifierSimple
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 Default Methods Modifier and Type Method Description default booleanverify(byte[] input, int offset, int length, S signature)default booleanverify(byte[] input, S signature)default booleanverify(CryptoBinary input, S signature)default booleanverifyAfterUpdate(S signature)default booleanverifyUnsafe(byte[] input, SignatureBinary signature)-
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.SignatureVerifierSimple
verify, verify, verify, verifyAfterUpdate, verifyAfterUpdate
-
-
-
-
Method Detail
-
verifyAfterUpdate
default boolean verifyAfterUpdate(S signature)
- Parameters:
signature- thebytearray with the signature as raw data.- Returns:
trueif the given signature is valid,falseotherwise.
-
verify
default boolean verify(byte[] input, int offset, int length, S signature)- Parameters:
input- the message data for which thesignaturewas created.offset- the index where to start reading data frominput.length- the number of bytes to read frominput.signature- thebytearray with the signature as raw data.- Returns:
trueif the given signature is valid,falseotherwise.
-
verify
default boolean verify(byte[] input, S 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.
-
verifyUnsafe
default boolean verifyUnsafe(byte[] input, SignatureBinary 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(CryptoBinary input, S signature)
- Parameters:
input- the message data for which thesignaturewas created. E.g. aHash.signature- thebytearray with the signature as raw data.- Returns:
trueif the given signature is valid,falseotherwise.
-
-