public interface ClientCredentialsOAuthDancer
Modifier and Type | Method and Description |
---|---|
CompletableFuture<String> |
accessToken()
Will query the internal state (the
tokensStore parameter passed to the service to build the
ClientCredentialsOAuthDancer ) to get the appropriate accessToken. |
ResourceOwnerOAuthContext |
getContext()
Retrieves the oauth context.
|
void |
invalidateContext()
Clears the oauth context.
|
CompletableFuture<Void> |
refreshToken()
Performs the refresh of the access token.
|
CompletableFuture<String> accessToken() throws RequestAuthenticationException
tokensStore
parameter passed to the service to build the
ClientCredentialsOAuthDancer
) to get the appropriate accessToken. This requires that the authorization has been
performed beforehand, otherwise, a RequestAuthenticationException
will be thrown.RequestAuthenticationException
- if called for a resourceOwner
that has not yet been authorized.CompletableFuture<Void> refreshToken()
void invalidateContext()
ResourceOwnerOAuthContext getContext()
Copyright © 2018. All rights reserved.