@Singleton public class DefaultStateValidator extends java.lang.Object implements StateValidator
| Constructor and Description | 
|---|
| DefaultStateValidator(StatePersistence statePersistence) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | validate(io.micronaut.http.HttpRequest<?> request,
        State state)Validates the provided state. | 
public DefaultStateValidator(StatePersistence statePersistence)
statePersistence - The state persistence beanpublic void validate(@Nonnull
                     io.micronaut.http.HttpRequest<?> request,
                     @Nullable
                     State state)
              throws InvalidStateException
StateValidatorvalidate in interface StateValidatorrequest - The HTTP Requeststate - The state value returned by the authorization serverInvalidStateException - If the state validation failed