Class UsernamePasswordAuthenticationToken

    • Constructor Detail

      • UsernamePasswordAuthenticationToken

        public UsernamePasswordAuthenticationToken​(String username,
                                                   String password)
        Parameters:
        username - the principal submitted for authentication
        password - the password string submitted for authentication
    • Method Detail

      • getPassword

        public String getPassword()
        Returns the password submitted during an authentication attempt
        Returns:
        the password submitted during an authentication attempt.
      • 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