Class AuthorizationCodeHandler
- java.lang.Object
-
- org.apache.synapse.endpoints.auth.oauth.OAuthHandler
-
- org.apache.synapse.endpoints.auth.oauth.AuthorizationCodeHandler
-
- All Implemented Interfaces:
AuthHandler
public class AuthorizationCodeHandler extends OAuthHandler
This class is used to handle Authorization code grant oauth.
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.endpoints.auth.oauth.OAuthHandler
connectionRequestTimeout, connectionTimeout, socketTimeout
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildTokenRequestPayload(MessageContext messageContext)Return the request payload relevant to the OAuth handler.StringgetRefreshToken()Return the refresh token secret relevant to the Authorization Code Handler.protected org.apache.axiom.om.OMElementserializeSpecificOAuthConfigs(org.apache.axiom.om.OMFactory omFactory)Return the OMElement for OAuth configuration relevant to the OAuth handler.-
Methods inherited from class org.apache.synapse.endpoints.auth.oauth.OAuthHandler
getAuthMode, getAuthType, getClientId, getClientSecret, getConnectionRequestTimeout, getConnectionTimeout, getCustomHeadersMap, getEncodedCredentials, getRequestParametersAsString, getRequestParametersMap, getSocketTimeout, getTokenUrl, removeTokenFromCache, serializeOAuthConfiguration, setAuthHeader, setCustomHeaders, setRequestParameters
-
-
-
-
Method Detail
-
buildTokenRequestPayload
protected String buildTokenRequestPayload(MessageContext messageContext) throws AuthException
Description copied from class:OAuthHandlerReturn the request payload relevant to the OAuth handler.- Specified by:
buildTokenRequestPayloadin classOAuthHandler- Returns:
- String payload
- Throws:
AuthException
-
serializeSpecificOAuthConfigs
protected org.apache.axiom.om.OMElement serializeSpecificOAuthConfigs(org.apache.axiom.om.OMFactory omFactory)
Description copied from class:OAuthHandlerReturn the OMElement for OAuth configuration relevant to the OAuth handler.- Specified by:
serializeSpecificOAuthConfigsin classOAuthHandler- Returns:
- OMElement OAuth configuration
-
getRefreshToken
public String getRefreshToken()
Return the refresh token secret relevant to the Authorization Code Handler.- Returns:
- String refresh token
-
-