public class AnnotationProcessorOAuthModule extends AnnotationProcessorRestModule implements OAuthModule
components, elements, innerElement, types
Constructor and Description |
---|
AnnotationProcessorOAuthModule(TypeElement innerElement,
Types types,
Elements elements,
List<Component> components) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ModelVisitor visitor)
As this type of object could contain a connector with different connection strategies, the idea is to visit any
concrete model object in the connector's components.
|
Field |
getAccessTokenField()
Retrieve the field annotated with
OAuthAccessToken |
String |
getAccessTokenRegex()
A Java regular expression used to extract the Access Token from the Service Provider response.
|
Field |
getAccessTokenSecretField()
Retrieve the field annotated with
OAuthAccessTokenSecret |
String |
getAccessTokenUrl()
The URL defined by the Service Provider to obtain an Access Token
|
List<OAuthAuthorizationParameter> |
getAuthorizationParameters()
Extra authorization parameters that will be appended as a query string arguments when building
the authorization URL.
|
String |
getAuthorizationUrl()
The URL defined by the Service Provider where the Resource Owner will be redirected to grant
authorization to the Consumer
|
List<OAuthCallbackParameterField> |
getCallbackParameters()
Retrieve a list of fields that need to be populated once the callback in OAuth is executed.
|
Field |
getConsumerKeyField()
Retrieve the field annotated with
OAuthConsumerKey |
Field |
getConsumerSecretField()
Retrieve the field annotated with
OAuthConsumerSecret |
String |
getExpirationRegex()
A Java regular expression used to extract the expiration time of the Access Token (in seconds) from the
Service Provider response.
|
DeclaredType |
getOAuthProvider() |
OAuthVersion |
getOAuthVersion() |
Method<OAuthModule> |
getPostAuthorizationMethod()
Retrieve the method that should be executed once the authorization process has ended.
|
String |
getRefreshTokenRegex()
A Java regular expression used to extract the Refresh Token from the Service Provider response.
|
String |
getRequestTokenUrl()
The URL defined by the Service Provider used to obtain an un-authorized Request Token
|
Field |
getScopeField()
Retrieve the field annotated with
OAuthScope |
org.mule.security.oauth.OnNoTokenPolicy |
getTokenPolicy() |
Method<OAuthModule> |
getUserIdentifierMethod()
Retrieve the method marked with
OAuthAccessTokenIdentifier |
String |
getVerifierRegex()
A Java regular expression used to extract the verifier from the Service Provider response as a result
of the Resource Owner authorizing the Consumer.
|
boolean |
needsConfig()
Return true if this module requires a config element or false if it can work
without one.
|
getHeaderFields, getPostFields, getQueryFields, getUriFields
getAnnotatedSchemaLocation, getConfigElementName, getConfigurableFields, getConnectionStrategy, getCurrentSchemaLocation, getDescription, getExceptionHandler, getFilterMethods, getFriendlyName, getKind, getLifecycleMethod, getMinMuleVersion, getModuleName, getModuleSchemaVersion, getProcessorMethods, getQueryTranslatorMethod, getRestCalls, getRestHttpClientField, getSourceMethods, getTransformerMethods, getTransformerResolverMethods, getVersionedSchemaLocation, getXmlNamespace, hasConfigurableWithType, hasDynamicMetadata, hasFilters, hasMetaDataScope, hasMethodWithName, hasProcessorMethodWithParameter, hasProcessors, hasQueryTranslator, hasRestCalls, hasSources, hasTransformerResolver, hasTransformers, isConnector, isModule, manager, metaDataScope, parentModule, reconnectOn, testConnectivityMethod, usesPooling
getInjectFields, getMetaDataKeyRetrieverMethod, getMetaDataOutputRetrieverMethod, getMetaDataRetrieverMethod
getClassName, getFields, getFieldsAnnotatedWith, getFirstMethodAnnotatedWith, getInheritedFields, getMethods, getMethodsAnnotatedWith, getPackage, getPackageName, getPathToSourceFile, getQualifiedName, getRecursivelyAnnotationProcessorMethodsAnnotatedWith, getRecursivelyFirstMethodAnnotatedWith, getRecursivelyMethodsAnnotatedWith, getRecursivelyMethodsAnnotatedWith, getSuperClass, hasFieldAnnotatedWith, hasNoArgConstructor, hasSuperClass, inheritsFrom, inheritsFrom, isArrayOrList, isBigDecimal, isBigInteger, isBoolean, isCalendar, isChar, isCollection, isComplexType, isComplexTypeWithGetterAndSetter, isDate, isDouble, isDsqlQueryObject, isEnum, isFloat, isHttpCallback, isInteger, isInterface, isLong, isMap, isNestedProcessor, isParametrized, isPrimitive, isSet, isString, isURL, isXmlType
asType, asTypeMirror, equals, getAnnotation, getAnnotationFieldValue, getAnnotationMirrors, getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getName, getThrowsComment, getTypeArguments, getXmlDeclaredChilds, hasAnnotation, hashCode, hasJavaDocTag, hasTypeArguments, isAbstract, isFinal, isPrivate, isProtected, isPublic, isReservedIdentifier, isStatic, unwrap
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getHeaderFields, getPostFields, getQueryFields, getUriFields
getAnnotatedSchemaLocation, getConfigElementName, getConfigurableFields, getConnectionStrategy, getCurrentSchemaLocation, getDescription, getExceptionHandler, getFilterMethods, getFriendlyName, getKind, getLifecycleMethod, getMinMuleVersion, getModuleName, getModuleSchemaVersion, getProcessorMethods, getQueryTranslatorMethod, getRestCalls, getRestHttpClientField, getSourceMethods, getTransformerMethods, getTransformerResolverMethods, getVersionedSchemaLocation, getXmlNamespace, hasConfigurableWithType, hasDynamicMetadata, hasFilters, hasMetaDataScope, hasMethodWithName, hasProcessorMethodWithParameter, hasProcessors, hasQueryTranslator, hasRestCalls, hasSources, hasTransformerResolver, hasTransformers, isConnector, isModule, manager, metaDataScope, parentModule, reconnectOn, testConnectivityMethod, usesPooling
getInjectFields, getMetaDataKeyRetrieverMethod, getMetaDataOutputRetrieverMethod, getMetaDataRetrieverMethod
getClassName, getFields, getFieldsAnnotatedWith, getFirstMethodAnnotatedWith, getInheritedFields, getMethods, getMethodsAnnotatedWith, getPackage, getPackageName, getPathToSourceFile, getQualifiedName, getRecursivelyAnnotationProcessorMethodsAnnotatedWith, getRecursivelyFirstMethodAnnotatedWith, getRecursivelyMethodsAnnotatedWith, getRecursivelyMethodsAnnotatedWith, getSuperClass, hasFieldAnnotatedWith, hasNoArgConstructor, hasSuperClass, inheritsFrom, inheritsFrom, isDsqlQueryObject, isInterface, isParametrized, isPrimitive
asType, asTypeMirror, getName, isReservedIdentifier, unwrap
getAnnotation, getAnnotationMirrors, hasAnnotation
getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getThrowsComment, hasJavaDocTag
isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic
getTypeArguments, getXmlDeclaredChilds, hasTypeArguments
isArrayOrList, isBigDecimal, isBigInteger, isBoolean, isCalendar, isChar, isCollection, isComplexType, isComplexTypeWithGetterAndSetter, isDate, isDouble, isEnum, isFloat, isHttpCallback, isInteger, isLong, isMap, isNestedProcessor, isSet, isString, isURL, isXmlType
public AnnotationProcessorOAuthModule(TypeElement innerElement, Types types, Elements elements, List<Component> components)
public OAuthVersion getOAuthVersion()
getOAuthVersion
in interface OAuthCapability
public boolean needsConfig()
Module
needsConfig
in interface Module
needsConfig
in class AnnotationProcessorModule
public Field getConsumerKeyField()
OAuthCapability
OAuthConsumerKey
getConsumerKeyField
in interface OAuthCapability
public Field getConsumerSecretField()
OAuthCapability
OAuthConsumerSecret
getConsumerSecretField
in interface OAuthCapability
public Field getAccessTokenField()
OAuthCapability
OAuthAccessToken
getAccessTokenField
in interface OAuthCapability
public Field getScopeField()
OAuthCapability
OAuthScope
getScopeField
in interface OAuthCapability
public Field getAccessTokenSecretField()
OAuthCapability
OAuthAccessTokenSecret
getAccessTokenSecretField
in interface OAuthCapability
public String getVerifierRegex()
OAuthCapability
getVerifierRegex
in interface OAuthCapability
public String getRequestTokenUrl()
OAuthCapability
getRequestTokenUrl
in interface OAuthCapability
public String getAccessTokenUrl()
OAuthCapability
getAccessTokenUrl
in interface OAuthCapability
public String getAuthorizationUrl()
OAuthCapability
getAuthorizationUrl
in interface OAuthCapability
public String getExpirationRegex()
OAuthCapability
getExpirationRegex
in interface OAuthCapability
public String getAccessTokenRegex()
OAuthCapability
getAccessTokenRegex
in interface OAuthCapability
public String getRefreshTokenRegex()
OAuthCapability
getRefreshTokenRegex
in interface OAuthCapability
public List<OAuthAuthorizationParameter> getAuthorizationParameters()
OAuthCapability
getAuthorizationParameters
in interface OAuthCapability
public List<OAuthCallbackParameterField> getCallbackParameters()
OAuthCapability
getCallbackParameters
in interface OAuthCapability
public Method<OAuthModule> getPostAuthorizationMethod()
OAuthCapability
getPostAuthorizationMethod
in interface OAuthCapability
public Method<OAuthModule> getUserIdentifierMethod()
OAuthCapability
OAuthAccessTokenIdentifier
getUserIdentifierMethod
in interface OAuthCapability
public void accept(ModelVisitor visitor)
AnnotationProcessorRestModule
accept
in interface Identifiable<TypeElement>
accept
in class AnnotationProcessorRestModule
public DeclaredType getOAuthProvider()
getOAuthProvider
in interface OAuthCapability
public org.mule.security.oauth.OnNoTokenPolicy getTokenPolicy()
getTokenPolicy
in interface OAuthCapability
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.