Package org.keycloak.services.validation
Class Validation
java.lang.Object
org.keycloak.services.validation.Validation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<FormMessage>
static boolean
Check if string is blank (null or lenght is 0 or contains only white characters)static boolean
isEmailValid
(String email) static boolean
Check if string is empty (null or lenght is 0)static boolean
isUsernameValid
(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
-