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
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 Abstract Methods Default Methods Modifier and Type Method Description default boolean
verify(byte[] input, byte[] signature)
default boolean
verify(byte[] input, byte[] signature, int signatureOffset, int signatureLength)
default boolean
verify(byte[] input, int inputOffset, int inputLength, byte[] signature, int signatureOffset, int signatureLength)
default boolean
verifyAfterUpdate(byte[] signature)
boolean
verifyAfterUpdate(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
- thebyte
array with the signature as raw data.- Returns:
true
if the given signature is valid,false
otherwise.
-
verifyAfterUpdate
boolean verifyAfterUpdate(byte[] signature, int offset, int length)
- Parameters:
signature
- thebyte
array with the signature as raw data.offset
- the index where to start reading data fromsignature
.length
- the number of bytes to read fromsignature
.- Returns:
true
if the given signature is valid,false
otherwise.
-
verify
default boolean verify(byte[] input, byte[] 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(byte[] input, byte[] signature, int signatureOffset, int signatureLength)
- Parameters:
input
- the message data for which thesignature
was created.signature
- thebyte
array with the signature as raw data.signatureOffset
- the index where to start reading data fromsignature
.signatureLength
- the number of bytes to read fromsignature
.- Returns:
true
if the given signature is valid,false
otherwise.
-
verify
default boolean verify(byte[] input, int inputOffset, int inputLength, byte[] signature, int signatureOffset, int signatureLength)
- Parameters:
input
- the message data for which thesignature
was created.inputOffset
- the index where to start reading data frominput
.inputLength
- the number of bytes to read frominput
.signature
- thebyte
array with the signature as raw data.signatureOffset
- the index where to start reading data fromsignature
.signatureLength
- the number of bytes to read fromsignature
.- Returns:
true
if the given signature is valid,false
otherwise.
-
-