List of usage examples for org.apache.shiro.crypto.hash SimpleHash SimpleHash
public SimpleHash(String algorithmName)
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); }