Skip to content

Commit

Permalink
Use interface for tokenServices
Browse files Browse the repository at this point in the history
Should use AuthorizationServerTokenServices interface for tokenServices
  • Loading branch information
mikeroda committed Aug 19, 2015
1 parent f76cd78 commit bc1e6d1
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -17,7 +17,6 @@
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.cloudfoundry.identity.uaa.authentication.Origin;
import org.cloudfoundry.identity.uaa.oauth.token.UaaTokenServices;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
Expand All @@ -32,6 +31,7 @@
import org.springframework.security.oauth2.provider.ClientDetailsService;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.security.oauth2.provider.OAuth2Request;
import org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices;

import javax.net.ssl.SSLContext;
import java.security.KeyManagementException;
Expand All @@ -45,7 +45,7 @@
import java.util.Set;

public class LocalUaaRestTemplate extends OAuth2RestTemplate implements InitializingBean {
protected UaaTokenServices tokenServices;
protected AuthorizationServerTokenServices tokenServices;
protected String clientId;
protected ClientDetailsService clientDetailsService;
protected boolean verifySsl = true;
Expand Down Expand Up @@ -88,11 +88,11 @@ protected OAuth2AccessToken acquireAccessToken(OAuth2ClientContext oauth2Context
return result;
}

public UaaTokenServices getTokenServices() {
public AuthorizationServerTokenServices getTokenServices() {
return tokenServices;
}

public void setTokenServices(UaaTokenServices tokenServices) {
public void setTokenServices(AuthorizationServerTokenServices tokenServices) {
this.tokenServices = tokenServices;
}

Expand Down

0 comments on commit bc1e6d1

Please sign in to comment.