Interface PasswordTokenValidator<P extends PasswordToken>

  • All Known Implementing Classes:
    DefaultPasswordTokenValidator

    public interface PasswordTokenValidator<P extends PasswordToken>
    This validator performs various checks on the validity of a password token compared to that of a set of password tokens that belong to a user.
    Author:
    Nathan Moore (nathanmoore).
    See Also:
    PasswordToken.getUserId()
    • Method Detail

      • isValid

        boolean isValid​(String token,
                        Collection<P> passwordTokens)
        Performs all checks
        Parameters:
        token - the token to validate
        passwordTokens - A set of tokens belonging to a user
        Returns:
        if the given token is valid for the given user