Package org.keycloak.services.validation
Class Validation
java.lang.Object
org.keycloak.services.validation.Validation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<FormMessage>static booleanCheck if string is blank (null or lenght is 0 or contains only white characters)static booleanisEmailValid(String email) static booleanCheck if string is empty (null or lenght is 0)static booleanisUsernameValid(String username)
-
Field Details
-
FIELD_PASSWORD_CONFIRM
- See Also:
-
FIELD_EMAIL
- See Also:
-
FIELD_PASSWORD
- See Also:
-
FIELD_USERNAME
- See Also:
-
FIELD_OTP_CODE
- See Also:
-
FIELD_OTP_LABEL
- See Also:
-
-
Constructor Details
-
Validation
public Validation()
-
-
Method Details
-
isEmpty
Check if string is empty (null or lenght is 0)- Parameters:
s- to check- Returns:
- true if string is empty
-
isBlank
Check if string is blank (null or lenght is 0 or contains only white characters)- Parameters:
s- to check- Returns:
- true if string is blank
-
isEmailValid
-
isUsernameValid
-
getFormErrorsFromValidation
-