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 returnstruewhen 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 booleandoCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)Returnstruealways no matter what the method arguments are.
-
-
-
Method Detail
-
doCredentialsMatch
public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)
Returnstruealways no matter what the method arguments are.- Specified by:
doCredentialsMatchin interfaceCredentialsMatcher- Parameters:
token- the token submitted for authentication.info- the account being verified for access- Returns:
truealways.
-
-