Package com.atlassian.jira.applinks
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 Summary
ConstructorsConstructorDescriptionJiraApplinkOAuth2Service(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory) -
Method Summary
Modifier and TypeMethodDescriptionIterable<com.atlassian.applinks.api.ApplicationLink>Fetches all the oauth2 client configurations as application links.Iterable<com.atlassian.applinks.api.ApplicationLink>Fetches all the oauth2 provider configurations as application links.voidstart()This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
-
Constructor Details
-
JiraApplinkOAuth2Service
public JiraApplinkOAuth2Service(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory)
-
-
Method Details
-
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:
getApplicationLinksForOAuth2Clientsin interfacecom.atlassian.applinks.api.oauth2.ApplinkOAuth2Service- Returns:
- an
IterableofApplicationLinks; one for each client.
-
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:
getApplicationLinksForOAuth2Providerin interfacecom.atlassian.applinks.api.oauth2.ApplinkOAuth2Service- Returns:
- an
IterableofApplicationLinks; one for each provider.
-
start
Description copied from interface:StartableThis method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
-