Class OAuth2TokenIntrospectionHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
org.springframework.security.oauth2.server.authorization.http.converter.OAuth2TokenIntrospectionHttpMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<OAuth2TokenIntrospection>

public class OAuth2TokenIntrospectionHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
A HttpMessageConverter for an OAuth 2.0 Token Introspection Response.
Since:
0.1.1
See Also:
  • Constructor Details

    • OAuth2TokenIntrospectionHttpMessageConverter

      public OAuth2TokenIntrospectionHttpMessageConverter()
  • Method Details

    • supports

      protected boolean supports(Class<?> clazz)
      Specified by:
      supports in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
    • readInternal

      protected OAuth2TokenIntrospection readInternal(Class<? extends OAuth2TokenIntrospection> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException
      Specified by:
      readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
      Throws:
      org.springframework.http.converter.HttpMessageNotReadableException
    • writeInternal

      protected void writeInternal(OAuth2TokenIntrospection tokenIntrospection, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException
      Specified by:
      writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
      Throws:
      org.springframework.http.converter.HttpMessageNotWritableException
    • setTokenIntrospectionConverter

      public final void setTokenIntrospectionConverter(org.springframework.core.convert.converter.Converter<Map<String,Object>,OAuth2TokenIntrospection> tokenIntrospectionConverter)
      Sets the Converter used for converting the Token Introspection Response parameters to an OAuth2TokenIntrospection.
      Parameters:
      tokenIntrospectionConverter - the Converter used for converting to an OAuth2TokenIntrospection
    • setTokenIntrospectionParametersConverter

      public final void setTokenIntrospectionParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2TokenIntrospection,Map<String,Object>> tokenIntrospectionParametersConverter)
      Sets the Converter used for converting an OAuth2TokenIntrospection to a Map representation of the Token Introspection Response parameters.
      Parameters:
      tokenIntrospectionParametersConverter - the Converter used for converting to a Map representation of the Token Introspection Response parameters