|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Hash
A Cryptographic Hash
represents a one-way conversion algorithm that transforms an input source to an
underlying byte array. Hex and Base64-encoding output of the hashed bytes are automatically supported by the
inherited toHex()
and toBase64()
methods.
getBytes()
are the hashed value of the
original input source, also known as the 'checksum' or 'digest'.
Md2Hash
,
Md5Hash
,
Sha1Hash
,
Sha256Hash
,
Sha384Hash
,
Sha512Hash
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.shiro.util.ByteSource |
---|
ByteSource.Util |
Method Summary | |
---|---|
String |
getAlgorithmName()
Returns the name of the algorithm used to hash the input source, for example, SHA-256 , MD5 , etc. |
int |
getIterations()
Returns the number of hash iterations used to compute the hash. |
ByteSource |
getSalt()
Returns a salt used to compute the hash or null if no salt was used. |
Methods inherited from interface org.apache.shiro.util.ByteSource |
---|
getBytes, isEmpty, toBase64, toHex |
Method Detail |
---|
String getAlgorithmName()
SHA-256
, MD5
, etc.
The name is expected to be a MessageDigest
algorithm name.
SHA-256
, MD5
, etc.ByteSource getSalt()
null
if no salt was used.
null
if no salt was used.int getIterations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |