org.apache.shiro.authc.credential
Class Md5CredentialsMatcher

java.lang.Object
  extended by org.apache.shiro.codec.CodecSupport
      extended by org.apache.shiro.authc.credential.SimpleCredentialsMatcher
          extended by org.apache.shiro.authc.credential.HashedCredentialsMatcher
              extended by org.apache.shiro.authc.credential.Md5CredentialsMatcher
All Implemented Interfaces:
CredentialsMatcher

Deprecated. since 1.1 - use the HashedCredentialsMatcher directly and set its hashAlgorithmName property.

public class Md5CredentialsMatcher
extends HashedCredentialsMatcher

HashedCredentialsMatcher implementation that expects the stored AuthenticationInfo credentials to be MD5 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 supporting CredentialsMatcher implementations.

Since:
0.9

Field Summary
 
Fields inherited from class org.apache.shiro.codec.CodecSupport
PREFERRED_ENCODING
 
Constructor Summary
Md5CredentialsMatcher()
          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
 
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
 

Constructor Detail

Md5CredentialsMatcher

public Md5CredentialsMatcher()
Deprecated. 


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.