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 returnstrue
when matching credentials no matter what arguments are passed in. This can be used for testing or when credentials are implicitly trusted for a particularRealm
.- Since:
- 0.2
-
-
Constructor Summary
Constructors Constructor Description AllowAllCredentialsMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)
Returnstrue
always no matter what the method arguments are.
-
-
-
Method Detail
-
doCredentialsMatch
public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)
Returnstrue
always no matter what the method arguments are.- Specified by:
doCredentialsMatch
in interfaceCredentialsMatcher
- Parameters:
token
- the token submitted for authentication.info
- the account being verified for access- Returns:
true
always.
-
-