public class PlatformManagedOAuthHandler extends OAuthHandler<PlatformManagedOAuthDancer>
OAuthHandler implementation that works with a PlatformManagedOAuthDancerdancers, expressionEvaluator, lockFactory, muleContext, oauthService, objectStoreLocator, objectStoreManager, started| Constructor and Description |
|---|
PlatformManagedOAuthHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Function<OAuthConfig,org.mule.runtime.api.store.ObjectStore> |
buildObjectStoreLocator() |
ResourceOwnerOAuthContext |
getOAuthContext(PlatformManagedOAuthConfig config)
Retrieves the
ResourceOwnerOAuthContext for the given config. |
void |
invalidate(PlatformManagedOAuthConfig config)
Invalidates the OAuth state associated to the given
config |
void |
refreshToken(PlatformManagedOAuthConfig config)
Performs the refresh token flow
|
PlatformManagedOAuthDancer |
register(PlatformManagedOAuthConfig config)
Returns a
PlatformManagedOAuthDancer configured after the given config |
PlatformManagedOAuthDancer |
register(PlatformManagedOAuthConfig config,
List<PlatformManagedOAuthStateListener> listeners)
Returns a
PlatformManagedOAuthDancer configured after the given config |
dispose, getParameterExtractors, getParameterExtractors, initialise, start, start, stoppublic PlatformManagedOAuthDancer register(PlatformManagedOAuthConfig config)
PlatformManagedOAuthDancer configured after the given configconfig - an PlatformManagedOAuthConfigPlatformManagedOAuthDancerpublic PlatformManagedOAuthDancer register(PlatformManagedOAuthConfig config, List<PlatformManagedOAuthStateListener> listeners)
PlatformManagedOAuthDancer configured after the given configconfig - an PlatformManagedOAuthConfiglisteners - a list of listeners to be registered into the dancerPlatformManagedOAuthDancerpublic void refreshToken(PlatformManagedOAuthConfig config)
config - a registered PlatformManagedOAuthConfigpublic ResourceOwnerOAuthContext getOAuthContext(PlatformManagedOAuthConfig config)
ResourceOwnerOAuthContext for the given config. If no such context yet exists,
then it performs the OAuth authorization and returns the resulting context.config - a PlatformManagedOAuthConfigResourceOwnerOAuthContext for the given config.public void invalidate(PlatformManagedOAuthConfig config)
configconfig - a registered PlatformManagedOAuthConfigprotected Function<OAuthConfig,org.mule.runtime.api.store.ObjectStore> buildObjectStoreLocator()
buildObjectStoreLocator in class OAuthHandler<PlatformManagedOAuthDancer>Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.