Module io.github.mmm.crypto
Interface SignatureSignerSimple
-
- All Superinterfaces:
CryptoAlgorithm
,CryptoChunker
,CryptoProcessor
,SignatureProcessor
- All Known Subinterfaces:
SignatureSigner<S>
- All Known Implementing Classes:
SignatureSignerImpl
,SignatureSignerImplCryptorWithHash
,SignatureSignerImplEcBc
,SignatureSignerImplWithHash
public interface SignatureSignerSimple extends SignatureProcessor
- 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 byte[]
process(byte[] input, int offset, int length, boolean complete)
Generic method to process and transform data.byte[]
signAfterUpdateRaw(boolean reset)
-
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, reset
-
-
-
-
Method Detail
-
signAfterUpdateRaw
byte[] signAfterUpdateRaw(boolean reset)
- Parameters:
reset
- -true
toreset
after the signature has been generated,false
otherwise.- Returns:
- the final signature generated for the
processed data
.
-
process
default byte[] process(byte[] input, int offset, int length, boolean complete)
Description copied from interface:CryptoProcessor
Generic method to process and transform data.CryptoProcessor
Equivalent of process
(input, offset, length, complete)HashCreator
update
(input, offset, length); returnhash
(complete);Cryptor
return
crypt
(input, offset, length, true);SignatureSigner
update
(input, offset, length); returnsignAfterUpdate
(complete);SignatureVerifier
throw new
UnsupportedOperationException
();- Specified by:
process
in interfaceCryptoProcessor
- Parameters:
input
- the data to process.offset
- the index where to start reading data frominput
.length
- the number of bytes to read frominput
.complete
- -true
to complete/reset this processor after processing the giveninput
,false
otherwise.- Returns:
- the transformed
input
data.
-
-