org.keycloak.validation

## Interface ValidationContext<T>

- All Known Implementing Classes:
    ClientValidationContext, ClientValidationContext.OIDCContext, DefaultValidationContext

      public interface ValidationContext<T>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `ValidationContext.Event`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValidationContext<T>` | `addError(String message)`
    `ValidationContext<T>` | `addError(String fieldId, String message)`
    `ValidationContext<T>` | `addError(String fieldId, String message, String localizedMessageKey, Object... localizedMessageParams)`
    `ValidationContext.Event` | `getEvent()`
    `T` | `getObjectToValidate()`
    `KeycloakSession` | `getSession()`
    `ValidationResult` | `toResult()`

- - ### Method Detail

    - #### getEvent

          ValidationContext.Event getEvent()

    - #### getSession

          KeycloakSession getSession()

    - #### getObjectToValidate

          T getObjectToValidate()

    - #### addError

          ValidationContext<T> addError(String message)

    - #### addError

          ValidationContext<T> addError(String fieldId,
                                        String message)

    - #### addError

          ValidationContext<T> addError(String fieldId,
                                        String message,
                                        String localizedMessageKey,
                                        Object... localizedMessageParams)

    - #### toResult

          ValidationResult toResult()

Copyright © 2020 JBoss by Red Hat. All rights reserved.