List of usage examples for org.springframework.security.oauth2.client.resource BaseOAuth2ProtectedResourceDetails setAuthenticationScheme
public void setAuthenticationScheme(AuthenticationScheme authorizationScheme)
From source file:org.cloudfoundry.identity.client.UaaContextFactory.java
/** * Sets the token endpoint on the resource details * Sets the authentication scheme to be {@link org.springframework.security.oauth2.common.AuthenticationScheme#header} * @param tokenRequest the token request containing the token endpoint * @param details the details object that will be configured *///from w ww . ja v a 2 s. c o m protected void configureResourceDetails(TokenRequest tokenRequest, BaseOAuth2ProtectedResourceDetails details) { details.setAuthenticationScheme(header); details.setAccessTokenUri(tokenRequest.getTokenEndpoint().toString()); }