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

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

Introduction

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

The text is from its open source code.

Constructor

SimpleHash(String algorithmName, Object source, Object salt, int hashIterations)
Creates an algorithmName -specific hash of the specified source using the given salt a total of hashIterations times.
SimpleHash(String algorithmName)
Creates an new instance with only its algorithmName set - no hashing is performed.
SimpleHash(String algorithmName, Object source, Object salt)
Creates an algorithmName -specific hash of the specified source using the given salt using a single hash iteration.

Method

byte[]getBytes()
intgetIterations()
ByteSourcegetSalt()
StringtoBase64()
Returns a Base64-encoded string of the underlying #getBytes byte array .
StringtoHex()
Returns a hex-encoded string of the underlying #getBytes byte array .