@Singleton
public class AuthenticationResponseFactory
extends java.lang.Object
AuthenticationResponse objects given a Map or a HttpParameters.| Constructor and Description |
|---|
AuthenticationResponseFactory(StateSerDes stateSerDes) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResponse |
create(io.micronaut.http.HttpParameters parameters) |
AuthenticationResponse |
create(java.util.Map<java.lang.String,java.lang.String> formFields) |
public AuthenticationResponseFactory(StateSerDes stateSerDes)
stateSerDes - The state serdes@Nullable public AuthenticationResponse create(io.micronaut.http.HttpParameters parameters) throws AuthenticationErrorResponseException
parameters - Http parametersAuthenticationErrorResponseException - if the response was an error response@Nullable public AuthenticationResponse create(java.util.Map<java.lang.String,java.lang.String> formFields) throws AuthenticationErrorResponseException
formFields - A map containing a payload typically send with application/x-www-form-urlencoded POST request.AuthenticationErrorResponseException - if the response was an error response