Class OAuthClient
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.oauth2.OAuthClient
-
- Direct Known Subclasses:
OAuthClientWithLoginHint
public class OAuthClient extends Object
Client that can handle authentication against a UAA instance
-
-
Field Summary
Fields Modifier and Type Field Description protected CloudCredentialscredentialsprotected org.springframework.security.oauth2.common.OAuth2AccessTokentoken
-
Constructor Summary
Constructors Constructor Description OAuthClient(URL authorizationUrl, org.springframework.web.reactive.function.client.WebClient webClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()protected org.springframework.security.oauth2.common.OAuth2AccessTokencreateToken()StringgetAuthorizationHeader()org.springframework.security.oauth2.common.OAuth2AccessTokengetToken()org.cloudfoundry.reactor.TokenProvidergetTokenProvider()voidinit(CloudCredentials credentials)protected org.springframework.security.oauth2.common.OAuth2AccessTokenrefreshToken()
-
-
-
Field Detail
-
token
protected org.springframework.security.oauth2.common.OAuth2AccessToken token
-
credentials
protected CloudCredentials credentials
-
-
Constructor Detail
-
OAuthClient
public OAuthClient(URL authorizationUrl, org.springframework.web.reactive.function.client.WebClient webClient)
-
-
Method Detail
-
init
public void init(CloudCredentials credentials)
-
clear
public void clear()
-
getToken
public org.springframework.security.oauth2.common.OAuth2AccessToken getToken()
-
getAuthorizationHeader
public String getAuthorizationHeader()
-
createToken
protected org.springframework.security.oauth2.common.OAuth2AccessToken createToken()
-
refreshToken
protected org.springframework.security.oauth2.common.OAuth2AccessToken refreshToken()
-
getTokenProvider
public org.cloudfoundry.reactor.TokenProvider getTokenProvider()
-
-