org.apache.shiro.authc.credential
Class AllowAllCredentialsMatcher

java.lang.Object
  extended by org.apache.shiro.authc.credential.AllowAllCredentialsMatcher
All Implemented Interfaces:
CredentialsMatcher

public class AllowAllCredentialsMatcher
extends Object
implements CredentialsMatcher

A credentials matcher that always returns true when matching credentials no matter what arguments are passed in. This can be used for testing or when credentials are implicitly trusted for a particular Realm.

Since:
0.2

Constructor Summary
AllowAllCredentialsMatcher()
           
 
Method Summary
 boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)
          Returns true always no matter what the method arguments are.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowAllCredentialsMatcher

public AllowAllCredentialsMatcher()
Method Detail

doCredentialsMatch

public boolean doCredentialsMatch(AuthenticationToken token,
                                  AuthenticationInfo info)
Returns true always no matter what the method arguments are.

Specified by:
doCredentialsMatch in interface CredentialsMatcher
Parameters:
token - the token submitted for authentication.
info - the account being verified for access
Returns:
true always.


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