Module org.elasticsearch.xcore
Class Validation.Users
java.lang.Object
org.elasticsearch.xpack.core.security.support.Validation.Users
- Enclosing class:
Validation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Validation.ErrorvalidatePassword(SecureString password) static Validation.ErrorvalidateUsername(String username, boolean allowReserved, Settings settings) Validate the username
-
Constructor Details
-
Users
public Users()
-
-
Method Details
-
validateUsername
public static Validation.Error validateUsername(String username, boolean allowReserved, Settings settings) Validate the username- Parameters:
username- the username to validateallowReserved- whether or not to allow reserved user namessettings- the settings which may contain information about reserved users- Returns:
nullif valid
-
validatePassword
-