Class OAuth2Client
-
- All Implemented Interfaces:
public final class OAuth2Client
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOAuth2Client.WellKnown
-
Constructor Summary
Constructors Constructor Description OAuth2Client(HttpClient httpClient, String wellKnownUrl, ClientAuthenticationProperties clientAuthProperties, OAuth2CacheConfig cacheConfig)
-
Method Summary
Modifier and Type Method Description final OAuth2AccessTokenResponseonBehalfOf(String token, String scope)final OAuth2AccessTokenResponsetokenExchange(String token, String audience)final OAuth2AccessTokenResponseclientCredentials(String scope)final OAuth2AccessTokenResponseaccessToken(GrantRequest grantRequest)-
-
Constructor Detail
-
OAuth2Client
OAuth2Client(HttpClient httpClient, String wellKnownUrl, ClientAuthenticationProperties clientAuthProperties, OAuth2CacheConfig cacheConfig)
-
-
Method Detail
-
onBehalfOf
final OAuth2AccessTokenResponse onBehalfOf(String token, String scope)
-
tokenExchange
final OAuth2AccessTokenResponse tokenExchange(String token, String audience)
-
clientCredentials
final OAuth2AccessTokenResponse clientCredentials(String scope)
-
accessToken
final OAuth2AccessTokenResponse accessToken(GrantRequest grantRequest)
-
-
-
-