Class OidcUserInfoHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>
org.springframework.security.oauth2.server.authorization.oidc.http.converter.OidcUserInfoHttpMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>
public class OidcUserInfoHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>
A
HttpMessageConverter for an OpenID Connect UserInfo
Response.- Since:
- 0.2.1
- See Also:
-
AbstractHttpMessageConverterOidcUserInfo
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.oauth2.core.oidc.OidcUserInforeadInternal(Class<? extends org.springframework.security.oauth2.core.oidc.OidcUserInfo> clazz, org.springframework.http.HttpInputMessage inputMessage) final voidsetUserInfoConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, org.springframework.security.oauth2.core.oidc.OidcUserInfo> userInfoConverter) Sets theConverterused for converting the UserInfo parameters to anOidcUserInfo.final voidsetUserInfoParametersConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.core.oidc.OidcUserInfo, Map<String, Object>> userInfoParametersConverter) Sets theConverterused for converting theOidcUserInfoto aMaprepresentation of the UserInfo.protected booleanprotected voidwriteInternal(org.springframework.security.oauth2.core.oidc.OidcUserInfo oidcUserInfo, org.springframework.http.HttpOutputMessage outputMessage) Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supportsRepeatableWrites, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Constructor Details
-
OidcUserInfoHttpMessageConverter
public OidcUserInfoHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin classorg.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>
-
readInternal
protected org.springframework.security.oauth2.core.oidc.OidcUserInfo readInternal(Class<? extends org.springframework.security.oauth2.core.oidc.OidcUserInfo> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
readInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>- Throws:
org.springframework.http.converter.HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(org.springframework.security.oauth2.core.oidc.OidcUserInfo oidcUserInfo, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException - Specified by:
writeInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.security.oauth2.core.oidc.OidcUserInfo>- Throws:
org.springframework.http.converter.HttpMessageNotWritableException
-
setUserInfoConverter
public final void setUserInfoConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, org.springframework.security.oauth2.core.oidc.OidcUserInfo> userInfoConverter) Sets theConverterused for converting the UserInfo parameters to anOidcUserInfo.- Parameters:
userInfoConverter- theConverterused for converting to anOidcUserInfo
-
setUserInfoParametersConverter
public final void setUserInfoParametersConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.core.oidc.OidcUserInfo, Map<String, Object>> userInfoParametersConverter) Sets theConverterused for converting theOidcUserInfoto aMaprepresentation of the UserInfo.- Parameters:
userInfoParametersConverter- theConverterused for converting to aMaprepresentation of the UserInfo
-