Class JiraApplinkOAuth2Service

java.lang.Object
com.atlassian.jira.applinks.JiraApplinkOAuth2Service
All Implemented Interfaces:
com.atlassian.applinks.api.oauth2.ApplinkOAuth2Service, Startable

public class JiraApplinkOAuth2Service extends Object implements com.atlassian.applinks.api.oauth2.ApplinkOAuth2Service, Startable
This class delegates to the ApplinkOAuth2Service provided by UAL. Because this ApplinkOAuth2Service lives within the bundled applinks plugin, we have to use the OsgiServiceProxyFactory to get a reference to this service, after the plugin system has finished starting up.
Since:
v10.5
  • Constructor Details

    • JiraApplinkOAuth2Service

      public JiraApplinkOAuth2Service(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory)
  • Method Details

    • getApplicationLinksForOAuth2Clients

      public Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinksForOAuth2Clients()
      Fetches all the oauth2 client configurations as application links. Modifications to the returned objects will not apply any changes to the original oauth2 client configurations.
      Specified by:
      getApplicationLinksForOAuth2Clients in interface com.atlassian.applinks.api.oauth2.ApplinkOAuth2Service
      Returns:
      an Iterable of ApplicationLinks; one for each client.
    • getApplicationLinksForOAuth2Provider

      public Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinksForOAuth2Provider()
      Fetches all the oauth2 provider configurations as application links. Modifications to the returned objects will not apply any changes to the original oauth2 provider configurations.
      Specified by:
      getApplicationLinksForOAuth2Provider in interface com.atlassian.applinks.api.oauth2.ApplinkOAuth2Service
      Returns:
      an Iterable of ApplicationLinks; one for each provider.
    • start

      public void start() throws Exception
      Description copied from interface: Startable
      This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
      Specified by:
      start in interface Startable
      Throws:
      Exception - Allows implementations to throw an Exception.