Class AuthorizationCodeHandler

  • All Implemented Interfaces:
    AuthHandler

    public class AuthorizationCodeHandler
    extends OAuthHandler
    This class is used to handle Authorization code grant oauth.
    • Constructor Detail

      • AuthorizationCodeHandler

        public AuthorizationCodeHandler​(String tokenApiUrl,
                                        String clientId,
                                        String clientSecret,
                                        String refreshToken,
                                        String authMode,
                                        int connectionTimeout,
                                        int connectionRequestTimeout,
                                        int socketTimeout)
    • Method Detail

      • serializeSpecificOAuthConfigs

        protected org.apache.axiom.om.OMElement serializeSpecificOAuthConfigs​(org.apache.axiom.om.OMFactory omFactory)
        Description copied from class: OAuthHandler
        Return the OMElement for OAuth configuration relevant to the OAuth handler.
        Specified by:
        serializeSpecificOAuthConfigs in class OAuthHandler
        Returns:
        OMElement OAuth configuration
      • getRefreshToken

        public String getRefreshToken()
        Return the refresh token secret relevant to the Authorization Code Handler.
        Returns:
        String refresh token