Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="MessageDigesterFactory") public interface MessageDigesterFactory
Message digests are secure one-way hash functions that take arbitrary-sized data and output a fixed-length hash value. This factory provides instances that supports common message digest algorithms, such as MD5 and SHA-256.
An instance of the Sitevision class implementing this interface can be obtained via
Utils.getMessageDigesterFactory()
. See Utils
for how to obtain an instance of the Utils
interface.
Modifier and Type | Method and Description |
---|---|
MessageDigester |
getMD5()
Gets an instanceof a message digester that performs hash computation using the MD5 algorithm.
|
MessageDigester |
getSHA1()
Gets an instanceof a message digester that performs hash computation using the SHA-1 algorithm.
|
MessageDigester |
getSHA256()
Gets an instanceof a message digester that performs hash computation using the SHA-256 algorithm.
|
MessageDigester |
getSHA512()
Gets an instanceof a message digester that performs hash computation using the SHA-512 algorithm.
|
MessageDigester getMD5()
MessageDigester getSHA1()
MessageDigester getSHA256()
MessageDigester getSHA512()
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.