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
ExtendsSignatureProcessor
with ability toverify
a 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 boolean
verify(byte[] input, int offset, int length, S signature)
default boolean
verify(byte[] input, S signature)
default boolean
verify(CryptoBinary input, S signature)
default boolean
verifyAfterUpdate(S signature)
default boolean
verifyUnsafe(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
- thebyte
array with the signature as raw data.- Returns:
true
if the given signature is valid,false
otherwise.
-
verify
default boolean verify(byte[] input, int offset, int length, S signature)
- Parameters:
input
- the message data for which thesignature
was created.offset
- the index where to start reading data frominput
.length
- the number of bytes to read frominput
.signature
- thebyte
array with the signature as raw data.- Returns:
true
if the given signature is valid,false
otherwise.
-
verify
default boolean verify(byte[] input, S signature)
- Parameters:
input
- the message data for which thesignature
was created.signature
- thebyte
array with the signature as raw data.- Returns:
true
if the given signature is valid,false
otherwise.
-
verifyUnsafe
default boolean verifyUnsafe(byte[] input, SignatureBinary signature)
- Parameters:
input
- the message data for which thesignature
was created.signature
- thebyte
array with the signature as raw data.- Returns:
true
if the given signature is valid,false
otherwise.
-
verify
default boolean verify(CryptoBinary input, S signature)
- Parameters:
input
- the message data for which thesignature
was created. E.g. aHash
.signature
- thebyte
array with the signature as raw data.- Returns:
true
if the given signature is valid,false
otherwise.
-
-