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 OAuth2AccessTokenWithAdditionalInfotokenprotected TokenFactorytokenFactoryprotected org.springframework.web.reactive.function.client.WebClientwebClient
-
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 OAuth2AccessTokenWithAdditionalInfocreateToken()StringgetAuthorizationHeaderValue()OAuth2AccessTokenWithAdditionalInfogetToken()org.cloudfoundry.reactor.TokenProvidergetTokenProvider()voidinit(CloudCredentials credentials)
-
-
-
Field Detail
-
token
protected OAuth2AccessTokenWithAdditionalInfo token
-
credentials
protected CloudCredentials credentials
-
webClient
protected final org.springframework.web.reactive.function.client.WebClient webClient
-
tokenFactory
protected final TokenFactory tokenFactory
-
-
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 OAuth2AccessTokenWithAdditionalInfo getToken()
-
getAuthorizationHeaderValue
public String getAuthorizationHeaderValue()
-
getTokenProvider
public org.cloudfoundry.reactor.TokenProvider getTokenProvider()
-
createToken
protected OAuth2AccessTokenWithAdditionalInfo createToken()
-
-