public interface Digest
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest()
Finishes a multiple-part digest operation, and produce the resulting digest.
|
byte[] |
digest(byte[] input)
Finishes a multiple-part digest operation, and produce the resulting digest.
|
byte[] |
digest(byte[] input,
int inputOffset,
int inputLen)
Finishes a multiple-part digest operation, and produce the resulting digest.
|
String |
getAlgorithmName() |
int |
getDigestSize() |
byte[] |
getEncoded()
Serialize the definition of this digest.
|
FilterInputStream |
getInputStream(InputStream is)
Return a filtered input stream computing byte read into a digest.
|
OutputStream |
getOutputStream()
Return an output stream to this digest.
|
DigestParameters |
getParameters() |
void |
update(byte[] input)
Continues a multiple-part digest operation, processing another data part.
|
void |
update(byte[] input,
int inputOffset,
int inputLen)
Continues a multiple-part digest operation, processing another data part.
|
String getAlgorithmName()
int getDigestSize()
DigestParameters getParameters()
FilterInputStream getInputStream(InputStream is)
is - an input stream to read and calculate digest from. Call digest() to get the digest.OutputStream getOutputStream()
void update(byte[] input)
input - the input buffer.void update(byte[] input,
int inputOffset,
int inputLen)
input - the input buffer.inputOffset - the offset in input where the input starts.inputLen - the input length.byte[] digest()
byte[] digest(byte[] input)
input - the input buffer.byte[] digest(byte[] input,
int inputOffset,
int inputLen)
input - the input buffer.inputOffset - the offset in input where the input starts.inputLen - the input length.byte[] getEncoded()
throws IOException
IOException - on errorCopyright © 2004–2015 XWiki. All rights reserved.