public abstract class SignatureProcessorImplWithHash extends AbstractSecurityAlgorithm implements SignatureProcessor
| Modifier and Type | Field and Description |
|---|---|
private HashCreator |
hashGenerator |
| Constructor and Description |
|---|
SignatureProcessorImplWithHash(HashCreator hashGenerator)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
protected HashCreator |
getHashGenerator() |
protected abstract CryptoAlgorithm |
getSignatureAlgorithm() |
void |
reset()
Will reset the internal state of this object.
|
void |
update(byte[] input,
int offset,
int length) |
creationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitupdate, updateprocess, process, process, processprivate final HashCreator hashGenerator
public SignatureProcessorImplWithHash(HashCreator hashGenerator)
hashGenerator - the HashCreator to apply as extension.protected abstract CryptoAlgorithm getSignatureAlgorithm()
CryptoAlgorithm to extend.protected HashCreator getHashGenerator()
HashCreator to apply as extension.public String getAlgorithm()
getAlgorithm in interface CryptoAlgorithmKey.getAlgorithm(),
Signature.getAlgorithm(),
MessageDigest.getAlgorithm(),
SecureRandom.getAlgorithm(),
Cipher.getAlgorithm()public void update(byte[] input,
int offset,
int length)
update in interface CryptoChunkerinput - the next chunk of data.offset - the index where to start reading data from input.length - the number of bytes to read from input.MessageDigest.update(byte[], int, int),
Signature.update(byte[], int, int)public void reset()
CryptoProcessorCryptor may not reusable. It is therefore preferable to always create a
fresh instance for each cryptographic task.reset in interface CryptoProcessorMessageDigest.reset()Copyright © 2001–2019 mmm-Team. All rights reserved.