org.apache.shiro.authc.credential
Class Sha384CredentialsMatcher
java.lang.Object
org.apache.shiro.codec.CodecSupport
org.apache.shiro.authc.credential.SimpleCredentialsMatcher
org.apache.shiro.authc.credential.HashedCredentialsMatcher
org.apache.shiro.authc.credential.Sha384CredentialsMatcher
- All Implemented Interfaces:
- CredentialsMatcher
public class Sha384CredentialsMatcher
- extends HashedCredentialsMatcher
HashedCredentialsMatcher implementation that expects the stored AuthenticationInfo credentials to be
SHA-384 hashed.
- Since:
- 0.9
- Author:
- Les Hazlewood
| Methods inherited from class org.apache.shiro.codec.CodecSupport |
isByteSource, objectToBytes, objectToString, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toChars, toChars, toString, toString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sha384CredentialsMatcher
public Sha384CredentialsMatcher()
newHashInstance
protected AbstractHash newHashInstance()
- Creates a new uninitialized
Sha384Hash instance, without it's byte array set.
- Specified by:
newHashInstance in class HashedCredentialsMatcher
- Returns:
- a new uninitialized
Sha384Hash instance, without it's byte array set.
hashProvidedCredentials
protected Hash hashProvidedCredentials(Object credentials,
Object salt,
int hashIterations)
- This implementation merely returns
new Sha384Hash(credentials,salt,hashIterations).
- Specified by:
hashProvidedCredentials in class HashedCredentialsMatcher
- Parameters:
credentials - the submitted authentication token's credentials to hashsalt - the value to salt the hash, or null if a salt will not be used.hashIterations - the number of times to hash the credentials. At least one hash will always occur though,
even if this argument is 0 or negative.
- Returns:
- the hashed value of the provided credentials, according to the specified salt and hash iterations.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.