@Singleton @Requires(beans=StatePersistence.class) public class DefaultStateFactory extends java.lang.Object implements StateFactory
Constructor and Description |
---|
DefaultStateFactory(StateSerDes stateSerDes,
StatePersistence statePersistence) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildState(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse response) |
java.lang.String |
buildState(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse response,
AuthorizationRequest authorizationRequest) |
public DefaultStateFactory(StateSerDes stateSerDes, StatePersistence statePersistence)
stateSerDes
- To serialize the statestatePersistence
- A state persistence@Nullable public java.lang.String buildState(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response)
buildState
in interface StateFactory
request
- The original request prior redirectresponse
- The authorization redirect response@Nullable public java.lang.String buildState(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, @Nullable AuthorizationRequest authorizationRequest)
buildState
in interface StateFactory
request
- The original request prior redirectresponse
- The authorization redirect responseauthorizationRequest
- the AuthorizationRequest