Class JiraOAuthAuthenticationHandler

  • All Implemented Interfaces:
    com.atlassian.jira.rest.client.api.AuthenticationHandler

    public class JiraOAuthAuthenticationHandler
    extends Object
    implements com.atlassian.jira.rest.client.api.AuthenticationHandler
    This authentication handler uses the 3-legged OAuth approach described in https://developer.atlassian.com/server/jira/platform/oauth/ The user must manually retrieve a verification code, access token and consumer key to use this authenticator.
    • Constructor Detail

      • JiraOAuthAuthenticationHandler

        public JiraOAuthAuthenticationHandler​(String consumerKey,
                                              String verificationCode,
                                              String privateKey,
                                              String accessToken,
                                              String jiraUrl)
    • Method Detail

      • configure

        public void configure​(com.atlassian.httpclient.api.Request.Builder builder)
        Specified by:
        configure in interface com.atlassian.jira.rest.client.api.AuthenticationHandler