Example usage for org.springframework.security.oauth2.client.resource BaseOAuth2ProtectedResourceDetails setAuthenticationScheme

List of usage examples for org.springframework.security.oauth2.client.resource BaseOAuth2ProtectedResourceDetails setAuthenticationScheme

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.client.resource BaseOAuth2ProtectedResourceDetails setAuthenticationScheme.

Prototype

public void setAuthenticationScheme(AuthenticationScheme authorizationScheme) 

Source Link

Usage

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());
}