@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,
AuthorizationRequest authorizationRequest) |
protected MutableState |
createInitialState() |
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, @Nullable AuthorizationRequest authorizationRequest)
buildState
in interface StateFactory
request
- The original request prior redirectresponse
- The authorization redirect responseauthorizationRequest
- the AuthorizationRequest
protected MutableState createInitialState()