use of org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2AccessTokenMessageConverter 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.JaxbOAuth2AccessTokenMessageConverter in project spring-security-oauth by spring-projects.
the class JaxbOAuth2AccessTokenMessageConverterTests method before.
@Before
public void before() throws Exception {
converter = new JaxbOAuth2AccessTokenMessageConverter();
accessToken = new DefaultOAuth2AccessToken("SlAV32hkKG");
accessToken.setExpiration(expiration);
accessToken.setRefreshToken(new DefaultOAuth2RefreshToken("8xLOxBtZp8"));
}
use of org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2AccessTokenMessageConverter 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