Class AllowAllCredentialsMatcher

  • All Implemented Interfaces:
    CredentialsMatcher

    public class AllowAllCredentialsMatcher
    extends 
    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 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.