@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
StateValidator
validate
in interface StateValidator
request
- The HTTP Requeststate
- The state value returned by the authorization serverInvalidStateException
- If the state validation failed