org.apache.shiro.authc.credential
Class AllowAllCredentialsMatcher
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllowAllCredentialsMatcher
public AllowAllCredentialsMatcher()
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.