Class UserCredentialsOptionValidator
- java.lang.Object
-
- org.liquigraph.core.configuration.validators.UserCredentialsOptionValidator
-
public class UserCredentialsOptionValidator extends Object
-
-
Constructor Summary
Constructors Constructor Description UserCredentialsOptionValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>validate(String username, String password)Validates the given user credentials in the sense of checking if they are reasonable, i.e.Collection<String>validate(Optional<String> username, Optional<String> password)Validates the given user credentials are provided; username and password
-
-
-
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 connectpassword- the password corresponding tousername- Returns:
- a collection of Strings describing possible errors, an empty collection if no errors
-
validate
public Collection<String> validate(Optional<String> username, Optional<String> password)
Validates the given user credentials are provided; username and password- Parameters:
username- the username to use to connectpassword- the password corresponding tousername- Returns:
- a collection of Strings describing possible errors, an empty collection if no errors
-
-