public class AuthorizationCodeOAuthHandler extends OAuthHandler<AuthorizationCodeOAuthDancer>
OAuthHandler implementation for the authorization code grant typedancers, expressionEvaluator, lockFactory, muleContext, oauthService, objectStoreLocator, objectStoreManager, started| Constructor and Description |
|---|
AuthorizationCodeOAuthHandler() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ResourceOwnerOAuthContext> |
getOAuthContext(AuthorizationCodeConfig config) |
void |
initialise() |
void |
invalidate(String ownerConfigName,
String resourceOwnerId)
Invalidates the OAuth information of a particular resourceOwnerId
|
void |
refreshToken(String ownerConfigName,
String resourceOwnerId)
Performs the refresh token flow
|
AuthorizationCodeOAuthDancer |
register(AuthorizationCodeConfig config)
Becomes aware of the given
config and makes sure that the access token callback
and authorization endpoints are provisioned. |
AuthorizationCodeOAuthDancer |
register(AuthorizationCodeConfig config,
List<AuthorizationCodeListener> listeners) |
dispose, getParameterExtractors, start, start, stoppublic AuthorizationCodeOAuthDancer register(AuthorizationCodeConfig config)
config and makes sure that the access token callback
and authorization endpoints are provisioned.config - an AuthorizationCodeConfigpublic AuthorizationCodeOAuthDancer register(AuthorizationCodeConfig config, List<AuthorizationCodeListener> listeners)
public void refreshToken(String ownerConfigName, String resourceOwnerId)
ownerConfigName - the name of the extension config which obtained the tokenresourceOwnerId - the id of the user to be invalidatedpublic Optional<ResourceOwnerOAuthContext> getOAuthContext(AuthorizationCodeConfig config)
config - an OAuthConfigResourceOwnerOAuthContext for the given config or Optional.empty()
if authorization hasn't yet taken place or has been invalidatedpublic void invalidate(String ownerConfigName, String resourceOwnerId)
ownerConfigName - the name of the extension config which obtained the tokenresourceOwnerId - the id of the user to be invalidatedpublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class OAuthHandler<AuthorizationCodeOAuthDancer>org.mule.runtime.api.lifecycle.InitialisationExceptionCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.