Class JiraSessionFactory

java.lang.Object
hudson.plugins.jira.JiraSessionFactory

public class JiraSessionFactory extends Object
Jira Session factory implementation
Author:
Elia Bracci
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(JiraSite jiraSite, URI uri, com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials)
    This method takes as parameters the JiraSite class, the jira URI and credentials and returns a JiraSession with Basic authentication if useBearerAuth is set to false, otherwise it returns a JiraSession with Bearer authentication if useBearerAuth is set to true.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JiraSessionFactory

      public JiraSessionFactory()
  • Method Details

    • create

      public static JiraSession create(JiraSite jiraSite, URI uri, com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials)
      This method takes as parameters the JiraSite class, the jira URI and credentials and returns a JiraSession with Basic authentication if useBearerAuth is set to false, otherwise it returns a JiraSession with Bearer authentication if useBearerAuth is set to true.
      Parameters:
      jiraSite - jiraSite class
      uri - jira uri
      credentials - Jenkins credentials
      Returns:
      JiraSession instance