public abstract class DigestAlgorithm extends Algorithm
| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
input_
The input data for the digest algorithm.
|
| Constructor and Description |
|---|
DigestAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.io.InputStream |
digest()
Computes the digest for the input data previously specified by means of method
setInput(java.io.InputStream). |
void |
setInput(java.io.InputStream input)
Sets the octet stream data to be processed by the digest algorithm.
|
getURI, setParameters, setURI, toElementpublic abstract java.io.InputStream digest()
throws AlgorithmException
setInput(java.io.InputStream).AlgorithmException - if computing the digest fails for any reason.public void setInput(java.io.InputStream input)
input - The data to be processed by the digest algorithm.