Package org.keycloak.validation
Class DefaultValidationContext<T>
java.lang.Object
org.keycloak.validation.DefaultValidationContext<T>
- All Implemented Interfaces:
ValidationContext<T>
- Direct Known Subclasses:
ClientValidationContext
- Author:
- Vaclav Muzikar <vmuzikar@redhat.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.validation.ValidationContext
ValidationContext.Event
-
Constructor Summary
ConstructorDescriptionDefaultValidationContext
(ValidationContext.Event event, KeycloakSession session, T objectToValidate) -
Method Summary
-
Constructor Details
-
DefaultValidationContext
public DefaultValidationContext(ValidationContext.Event event, KeycloakSession session, T objectToValidate)
-
-
Method Details
-
getEvent
- Specified by:
getEvent
in interfaceValidationContext<T>
-
getSession
- Specified by:
getSession
in interfaceValidationContext<T>
-
getObjectToValidate
- Specified by:
getObjectToValidate
in interfaceValidationContext<T>
-
addError
- Specified by:
addError
in interfaceValidationContext<T>
-
addError
- Specified by:
addError
in interfaceValidationContext<T>
-
addError
public ValidationContext<T> addError(String fieldId, String message, String localizedMessageKey, Object... localizedMessageParams) - Specified by:
addError
in interfaceValidationContext<T>
-
toResult
- Specified by:
toResult
in interfaceValidationContext<T>
-