Class UserCredentialsOptionValidator


  • public class UserCredentialsOptionValidator
    extends Object
    • Constructor Detail

      • UserCredentialsOptionValidator

        public UserCredentialsOptionValidator()
    • Method Detail

      • validate

        public Collection<String> validate​(String username,
                                           String password)
        Validates the given user credentials in the sense of checking if they are reasonable, i.e. providing both username and password or neither..
        Parameters:
        username - the username to use to connect
        password - the password corresponding to username
        Returns:
        a collection of Strings describing possible errors, an empty collection if no errors