Java org.apache.shiro.crypto.hash Hash fields, constructors, methods, implement or subclass

Example usage for Java org.apache.shiro.crypto.hash Hash fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.shiro.crypto.hash Hash.

The text is from its open source code.

Method

StringgetAlgorithmName()
Returns the name of the algorithm used to hash the input source, for example, SHA-256 , MD5 , etc.
byte[]getBytes()
Returns the wrapped byte array.
intgetIterations()
Returns the number of hash iterations used to compute the hash.
ByteSourcegetSalt()
Returns a salt used to compute the hash or null if no salt was used.
booleanisEmpty()
Returns true if the underlying wrapped byte array is null or empty (zero length), false otherwise.
StringtoBase64()
Returns the Base 64-formatted String representation of the underlying wrapped byte array.
StringtoHex()
Returns the Hex-formatted String representation of the underlying wrapped byte array.