Package no.nav.security.mock.oauth2.http
Class OAuth2HttpResponseKt
-
- All Implemented Interfaces:
public final class OAuth2HttpResponseKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static ObjectMapperobjectMapperprivate final static TemplateMappertemplateMapper
-
Method Summary
Modifier and Type Method Description final ObjectMappergetObjectMapper()final TemplateMappergetTemplateMapper()final static OAuth2HttpResponsejson(Object anyObject)final static OAuth2HttpResponsehtml(String content)final static OAuth2HttpResponseredirect(String location, Headers headers)final static OAuth2HttpResponsenotFound(String body)final static OAuth2HttpResponsemethodNotAllowed()final static OAuth2HttpResponseauthenticationSuccess(AuthenticationSuccessResponse authenticationSuccessResponse)final static OAuth2HttpResponseoauth2Error(ErrorObject error)-
-
Method Detail
-
getObjectMapper
final ObjectMapper getObjectMapper()
-
getTemplateMapper
final TemplateMapper getTemplateMapper()
-
json
final static OAuth2HttpResponse json(Object anyObject)
-
html
final static OAuth2HttpResponse html(String content)
-
redirect
final static OAuth2HttpResponse redirect(String location, Headers headers)
-
notFound
final static OAuth2HttpResponse notFound(String body)
-
methodNotAllowed
final static OAuth2HttpResponse methodNotAllowed()
-
authenticationSuccess
final static OAuth2HttpResponse authenticationSuccess(AuthenticationSuccessResponse authenticationSuccessResponse)
-
oauth2Error
final static OAuth2HttpResponse oauth2Error(ErrorObject error)
-
-
-
-