Dancer - The generic type of the OAuth dancer to usepublic abstract class OAuthHandler<Dancer> extends Object implements org.mule.runtime.api.lifecycle.Lifecycle
One concrete implementation of this class must exist per each supported grant type.
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Dancer> |
dancers |
protected org.mule.runtime.api.el.MuleExpressionLanguage |
expressionEvaluator |
protected org.mule.runtime.api.lock.LockFactory |
lockFactory |
protected MuleContext |
muleContext |
protected org.mule.runtime.api.util.LazyValue<OAuthService> |
oauthService |
protected Function<OAuthConfig,org.mule.runtime.api.store.ObjectStore> |
objectStoreLocator |
protected org.mule.runtime.api.store.ObjectStoreManager |
objectStoreManager |
protected boolean |
started |
| Constructor and Description |
|---|
OAuthHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Function<OAuthConfig,org.mule.runtime.api.store.ObjectStore> |
buildObjectStoreLocator() |
void |
dispose() |
Function<OAuthConfig,org.mule.runtime.api.store.ObjectStore> |
getObjectStoreLocator() |
protected Map<String,String> |
getParameterExtractors(Map<Field,String> extractors) |
protected Map<String,String> |
getParameterExtractors(OAuthConfig config) |
void |
initialise() |
void |
start() |
protected void |
start(Dancer dancer) |
void |
stop() |
@Inject protected MuleContext muleContext
@Inject protected org.mule.runtime.api.lock.LockFactory lockFactory
@Inject @Named(value="_muleObjectStoreManager") protected org.mule.runtime.api.store.ObjectStoreManager objectStoreManager
@Inject protected org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator
protected org.mule.runtime.api.util.LazyValue<OAuthService> oauthService
protected Function<OAuthConfig,org.mule.runtime.api.store.ObjectStore> objectStoreLocator
protected boolean started
protected Map<String,String> getParameterExtractors(OAuthConfig config)
protected Map<String,String> getParameterExtractors(Map<Field,String> extractors)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionprotected void start(Dancer dancer) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposableprotected Function<OAuthConfig,org.mule.runtime.api.store.ObjectStore> buildObjectStoreLocator()
public Function<OAuthConfig,org.mule.runtime.api.store.ObjectStore> getObjectStoreLocator()
Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.