Class UsernameAuthenticationToken

    • Constructor Detail

      • UsernameAuthenticationToken

        public UsernameAuthenticationToken​(String username)
        Parameters:
        username - the username submitted for authentication
    • Method Detail

      • match

        public boolean match​(AuthenticationToken trustedAuthenticationToken)
        Checks if this User-submitted AuthenticationToken matches the realm trustedAuthenticationToken.
        Specified by:
        match in interface AuthenticationToken
        Parameters:
        trustedAuthenticationToken - the realm trustedAuthenticationToken
        Returns:
        if this token matches