public class OidcUserInfoHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>
HttpMessageConverter for an OpenID Connect UserInfo Response.AbstractHttpMessageConverter,
OidcUserInfo| Constructor and Description |
|---|
OidcUserInfoHttpMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.oauth2.core.oidc.OidcUserInfo |
readInternal(java.lang.Class<? extends org.springframework.security.oauth2.core.oidc.OidcUserInfo> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setUserInfoConverter(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.Object>,org.springframework.security.oauth2.core.oidc.OidcUserInfo> userInfoConverter)
Sets the
Converter used for converting the UserInfo parameters
to an OidcUserInfo. |
void |
setUserInfoParametersConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.core.oidc.OidcUserInfo,java.util.Map<java.lang.String,java.lang.Object>> userInfoParametersConverter)
Sets the
Converter used for converting the OidcUserInfo to a
Map representation of the UserInfo. |
protected boolean |
supports(java.lang.Class<?> clazz) |
protected void |
writeInternal(org.springframework.security.oauth2.core.oidc.OidcUserInfo oidcUserInfo,
org.springframework.http.HttpOutputMessage outputMessage) |
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeprotected boolean supports(java.lang.Class<?> clazz)
supports in class org.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>protected org.springframework.security.oauth2.core.oidc.OidcUserInfo readInternal(java.lang.Class<? extends org.springframework.security.oauth2.core.oidc.OidcUserInfo> clazz,
org.springframework.http.HttpInputMessage inputMessage)
throws org.springframework.http.converter.HttpMessageNotReadableException
readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>org.springframework.http.converter.HttpMessageNotReadableExceptionprotected void writeInternal(org.springframework.security.oauth2.core.oidc.OidcUserInfo oidcUserInfo,
org.springframework.http.HttpOutputMessage outputMessage)
throws org.springframework.http.converter.HttpMessageNotWritableException
writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>org.springframework.http.converter.HttpMessageNotWritableExceptionpublic final void setUserInfoConverter(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.Object>,org.springframework.security.oauth2.core.oidc.OidcUserInfo> userInfoConverter)
Converter used for converting the UserInfo parameters
to an OidcUserInfo.userInfoConverter - the Converter used for converting to an OidcUserInfopublic final void setUserInfoParametersConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.core.oidc.OidcUserInfo,java.util.Map<java.lang.String,java.lang.Object>> userInfoParametersConverter)
Converter used for converting the OidcUserInfo to a
Map representation of the UserInfo.userInfoParametersConverter - the Converter used for converting to a
Map representation of the UserInfo