use of org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2ExceptionMessageConverter in project spring-security-oauth by spring-projects.
the class Application method configureMessageConverters.
@Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
converters.add(new JaxbOAuth2AccessTokenMessageConverter());
converters.add(new JaxbOAuth2ExceptionMessageConverter());
}
use of org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2ExceptionMessageConverter in project spring-security-oauth by spring-projects.
the class DefaultOAuth2ExceptionRenderer method geDefaultMessageConverters.
private List<HttpMessageConverter<?>> geDefaultMessageConverters() {
List<HttpMessageConverter<?>> result = new ArrayList<HttpMessageConverter<?>>();
result.addAll(new RestTemplate().getMessageConverters());
result.add(new JaxbOAuth2ExceptionMessageConverter());
return result;
}
use of org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2ExceptionMessageConverter in project spring-security-oauth by spring-projects.
the class Converters method getJaxbConverters.
public static Collection<HttpMessageConverter<?>> getJaxbConverters() {
Collection<HttpMessageConverter<?>> converters = new ArrayList<>();
converters.add(new JaxbOAuth2AccessTokenMessageConverter());
converters.add(new JaxbOAuth2ExceptionMessageConverter());
return converters;
}
Aggregations