Search in sources :

Example 1 with FormOAuth2AccessTokenMessageConverter

use of org.springframework.security.oauth2.http.converter.FormOAuth2AccessTokenMessageConverter in project spring-security-oauth by spring-projects.

the class OAuth2AccessTokenSupport method setMessageConverters.

public void setMessageConverters(List<HttpMessageConverter<?>> messageConverters) {
    this.messageConverters = new ArrayList<HttpMessageConverter<?>>(messageConverters);
    this.messageConverters.add(new FormOAuth2AccessTokenMessageConverter());
    this.messageConverters.add(new FormOAuth2ExceptionHttpMessageConverter());
}
Also used : FormHttpMessageConverter(org.springframework.http.converter.FormHttpMessageConverter) FormOAuth2ExceptionHttpMessageConverter(org.springframework.security.oauth2.http.converter.FormOAuth2ExceptionHttpMessageConverter) HttpMessageConverter(org.springframework.http.converter.HttpMessageConverter) FormOAuth2ExceptionHttpMessageConverter(org.springframework.security.oauth2.http.converter.FormOAuth2ExceptionHttpMessageConverter) FormOAuth2AccessTokenMessageConverter(org.springframework.security.oauth2.http.converter.FormOAuth2AccessTokenMessageConverter)

Aggregations

FormHttpMessageConverter (org.springframework.http.converter.FormHttpMessageConverter)1 HttpMessageConverter (org.springframework.http.converter.HttpMessageConverter)1 FormOAuth2AccessTokenMessageConverter (org.springframework.security.oauth2.http.converter.FormOAuth2AccessTokenMessageConverter)1 FormOAuth2ExceptionHttpMessageConverter (org.springframework.security.oauth2.http.converter.FormOAuth2ExceptionHttpMessageConverter)1