Class Sha1CredentialsMatcher
- 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.Sha1CredentialsMatcher
-
- All Implemented Interfaces:
CredentialsMatcher
public class Sha1CredentialsMatcher extends HashedCredentialsMatcher
Deprecated.since 1.1 - use the HashedCredentialsMatcher directly and set itshashAlgorithmName
property.HashedCredentialsMatcher
implementation that expects the storedAuthenticationInfo
credentials to be SHA hashed. Note: MD5 and SHA-1 algorithms are now known to be vulnerable to compromise and/or collisions (read the linked pages for more). While most applications are ok with either of these two, if your application mandates high security, use the SHA-256 (or higher) hashing algorithms and their supportingCredentialsMatcher
implementations.- Since:
- 0.9
-
-
Constructor Summary
Constructors Constructor Description Sha1CredentialsMatcher()
Deprecated.
-
Method Summary
-
Methods inherited from class org.apache.shiro.authc.credential.HashedCredentialsMatcher
doCredentialsMatch, getCredentials, getHashAlgorithmName, getHashIterations, getSalt, hashProvidedCredentials, hashProvidedCredentials, isHashSalted, isStoredCredentialsHexEncoded, newHashInstance, setHashAlgorithmName, setHashIterations, setHashSalted, setStoredCredentialsHexEncoded
-
Methods inherited from class org.apache.shiro.authc.credential.SimpleCredentialsMatcher
equals, getCredentials
-
-