Example usage for org.apache.shiro.crypto.hash SimpleHash SimpleHash

List of usage examples for org.apache.shiro.crypto.hash SimpleHash SimpleHash

Introduction

In this page you can find the example usage for org.apache.shiro.crypto.hash SimpleHash SimpleHash.

Prototype

public SimpleHash(String algorithmName) 

Source Link

Document

Creates an new instance with only its algorithmName set - no hashing is performed.

Usage

From source file:com.jeecms.core.security.BbsCredentialsMatcher.java

License:Apache License

/**
 * Returns a new, <em>uninitialized</em> instance, without its byte array set.  Used as a utility method in the
 * {@link SimpleCredentialsMatcher#getCredentials(org.apache.shiro.authc.AuthenticationInfo) getCredentials(AuthenticationInfo)} implementation.
 *
 * @return a new, <em>uninitialized</em> instance, without its byte array set.
 */// w  ww . j a  v  a  2s .c  om
protected AbstractHash newHashInstance() {
    String hashAlgorithmName = assertHashAlgorithmName();
    return new SimpleHash(hashAlgorithmName);
}