@NoImplement
@Experimental
public interface PlatformManagedOAuthDancer
OAuthPlatformManagedDancerBuilder to point to a specific connection URI.
Since the authorizations are performed by the platform, this dancer remains agnostic of the grant type that was used to obtain them.
Platform Managed OAuth is an experimental feature. It will only be enabled on selected environments and scenarios. Backwards compatibility is not guaranteed.
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<String> |
accessToken()
Obtains the current access token for the connection that this dancer was configured for.
|
void |
addListener(PlatformManagedOAuthStateListener listener)
Adds the
listener. |
CompletableFuture<PlatformManagedConnectionDescriptor> |
getConnectionDescriptor()
Obtains a
PlatformManagedConnectionDescriptor which describes the connection this dancer accesses |
ResourceOwnerOAuthContext |
getContext()
Retrieves the oauth context.
|
void |
invalidateContext()
Clears the oauth context.
|
CompletableFuture<Void> |
refreshToken()
Performs the refresh of the access token.
|
void |
removeListener(PlatformManagedOAuthStateListener listener)
Removes the
listener. |
CompletableFuture<String> accessToken()
CompletableFuture<Void> refreshToken()
CompletableFuture<PlatformManagedConnectionDescriptor> getConnectionDescriptor()
PlatformManagedConnectionDescriptor which describes the connection this dancer accessesCompletableFuture which returns a PlatformManagedConnectionDescriptorvoid invalidateContext()
ResourceOwnerOAuthContext getContext()
void addListener(PlatformManagedOAuthStateListener listener)
listener. Listeners will be invoked in the same order as they were addedlistener - the PlatformManagedOAuthStateListener to be addedIllegalArgumentException - if the listener is nullvoid removeListener(PlatformManagedOAuthStateListener listener)
listener. Nothing happens if it wasn't part of this dancer.listener - the PlatformManagedOAuthStateListener to be removedIllegalArgumentException - if the listener is nullCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.