@NoImplement
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. |
void |
addListener(ClientCredentialsListener listener)
Adds the
listener. |
ResourceOwnerOAuthContext |
getContext()
Retrieves the oauth context.
|
void |
invalidateContext()
Clears the oauth context.
|
CompletableFuture<Void> |
refreshToken()
Performs the refresh of the access token.
|
void |
removeListener(ClientCredentialsListener listener)
Removes the
listener. |
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()
void addListener(ClientCredentialsListener listener)
listener. Listeners will be invoked in the same order as they were addedlistener - the ClientCredentialsListener to be addedIllegalArgumentException - if the listener is nullvoid removeListener(ClientCredentialsListener listener)
listener. Nothing happens if it wasn't part of this dancer.listener - the ClientCredentialsListener to be removedIllegalArgumentException - if the listener is nullCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.