org.mule.devkit.model.module.oauth
Interface OAuthModule

All Superinterfaces:
Accessible, Annotable, Documentable, Generifiable, Identifiable<TypeElement>, Module, RestModule, Type, Typeable

public interface OAuthModule
extends RestModule


Method Summary
 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
 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.
 
Methods inherited from interface org.mule.devkit.model.module.rest.RestModule
getHeaderFields, getPostFields, getQueryFields, getUriFields
 
Methods inherited from interface org.mule.devkit.model.module.Module
getAnnotatedSchemaLocation, getConfigElementName, getConfigurableFields, getCurrentSchemaLocation, getDescription, getFilterMethods, getFriendlyName, getInjectFields, getKind, getLifecycleMethod, getMetaDataKeyRetrieverMethod, getMetaDataRetrieverMethod, getMinMuleVersion, getModuleName, getModuleSchemaVersion, getProcessorMethods, getRestCalls, getRestHttpClientField, getSourceMethods, getTransformerMethods, getTransformerResolverMethods, getVersionedSchemaLocation, getXmlNamespace, hasConfigurableWithType, hasDynamicMetadata, hasFilters, hasMethodWithName, hasProcessorMethodWithParameter, hasProcessors, hasRestCalls, hasSources, hasTransformerResolver, hasTransformers, isConnector, isModule, needsConfig, parentModule, usesPooling
 
Methods inherited from interface org.mule.devkit.model.Type
getClassName, getFields, getInheritedFields, getMethods, getMethodsAnnotatedWith, getPackage, getPackageName, getPathToSourceFile, getQualifiedName, getSuperClass, hasFieldAnnotatedWith, hasNoArgConstructor, hasSuperClass, inheritsFrom, inheritsFrom, isInterface, isParametrized, isPrimitive
 
Methods inherited from interface org.mule.devkit.model.Identifiable
accept, asType, asTypeMirror, getName, isReservedIdentifier, unwrap
 
Methods inherited from interface org.mule.devkit.model.Annotable
getAnnotation, getAnnotationMirrors
 
Methods inherited from interface org.mule.devkit.model.Documentable
getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getThrowsComment, hasJavaDocTag
 
Methods inherited from interface org.mule.devkit.model.Accessible
isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic
 
Methods inherited from interface org.mule.devkit.model.Generifiable
getTypeArguments, getXmlDeclaredChilds, hasTypeArguments
 
Methods inherited from interface org.mule.devkit.model.Typeable
isArrayOrList, isBigDecimal, isBigInteger, isBoolean, isCalendar, isChar, isCollection, isComplexType, isComplexTypeWithGetterAndSetter, isDate, isDouble, isEnum, isFloat, isHttpCallback, isInteger, isLong, isMap, isNestedProcessor, isSet, isString, isURL, isXmlType
 

Method Detail

getOAuthVersion

OAuthVersion getOAuthVersion()

getConsumerKeyField

Field getConsumerKeyField()
Retrieve the field annotated with OAuthConsumerKey


getConsumerSecretField

Field getConsumerSecretField()
Retrieve the field annotated with OAuthConsumerSecret


getAccessTokenField

Field getAccessTokenField()
Retrieve the field annotated with OAuthAccessToken


getScopeField

Field getScopeField()
Retrieve the field annotated with OAuthScope


getAccessTokenSecretField

Field getAccessTokenSecretField()
Retrieve the field annotated with OAuthAccessTokenSecret


getVerifierRegex

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.


getRequestTokenUrl

String getRequestTokenUrl()
The URL defined by the Service Provider used to obtain an un-authorized Request Token


getAccessTokenUrl

String getAccessTokenUrl()
The URL defined by the Service Provider to obtain an Access Token


getAuthorizationUrl

String getAuthorizationUrl()
The URL defined by the Service Provider where the Resource Owner will be redirected to grant authorization to the Consumer


getExpirationRegex

String getExpirationRegex()
A Java regular expression used to extract the expiration time of the Access Token (in seconds) from the Service Provider response. If the this regular expression is not found in the Service Provider response (whether the regular expression is wrong or the Access Token never expires), the Access Token will be treated as if it would never expire.


getAccessTokenRegex

String getAccessTokenRegex()
A Java regular expression used to extract the Access Token from the Service Provider response.


getRefreshTokenRegex

String getRefreshTokenRegex()
A Java regular expression used to extract the Refresh Token from the Service Provider response.


getPostAuthorizationMethod

Method<OAuthModule> getPostAuthorizationMethod()
Retrieve the method that should be executed once the authorization process has ended.


getAuthorizationParameters

List<OAuthAuthorizationParameter> getAuthorizationParameters()
Extra authorization parameters that will be appended as a query string arguments when building the authorization URL.


getCallbackParameters

List<OAuthCallbackParameterField> getCallbackParameters()
Retrieve a list of fields that need to be populated once the callback in OAuth is executed.


getUserIdentifierMethod

Method<OAuthModule> getUserIdentifierMethod()
Retrieve the method marked with OAuthAccessTokenIdentifier


getOAuthProvider

DeclaredType getOAuthProvider()


Copyright © 2010–2013 MuleSoft, Inc.. All rights reserved.