Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface MessageDigester
Message digests are secure one-way hash functions that take arbitrary-sized
data and output a fixed-length hash value.
Implementations of this interface is typically backed by a java.security.MessageDigest
instance for given algorithm.
An instance of the Sitevision class implementing this interface for a specific algorithm can be obtained
via MessageDigesterFactory
.
MessageDigesterFactory
Modifier and Type | Method and Description |
---|---|
byte[] |
digest()
Executes the hash computation.
|
String |
getAlgorithm()
Returns a string that identifies the algorithm.
|
void |
updateByte(byte aByte)
Updates the digest with a byte.
|
void |
updateBytes(byte[] aBytes)
Updates the digest with an array of bytes.
|
void updateByte(byte aByte)
aByte
- the byte.void updateBytes(byte[] aBytes)
aBytes
- the array of bytes.byte[] digest()
String getAlgorithm()
Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.