public class

SeraphTrustedApplicationsManager

extends Object
implements TrustedApplicationsConfigurationManager TrustedApplicationsManager
java.lang.Object
   ↳ com.atlassian.jira.security.auth.trustedapps.SeraphTrustedApplicationsManager

Class Overview

Implements the com.atlassian.security.auth.trustedapps.TrustedApplicationsManager

Summary

Public Constructors
SeraphTrustedApplicationsManager(TrustedApplicationManager manager, CurrentApplicationFactory applicationFactory, JiraAuthenticationContext jiraAuthenticationContext)
Public Methods
TrustedApplication addTrustedApplication(Application app, RequestConditions conditions)
Adds the specified Trusted Application.
boolean deleteApplication(String applicationID)
Removes the specified Trusted Application.
Application getApplicationCertificate(String baseUrl)
Retrieve the application certificate from some other application, over HTTP.
CurrentApplication getCurrentApplication()
TrustedApplication getTrustedApplication(String id)
Iterable<TrustedApplication> getTrustedApplications()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
From interface com.atlassian.security.auth.trustedapps.TrustedApplicationsManager

Public Constructors

public SeraphTrustedApplicationsManager (TrustedApplicationManager manager, CurrentApplicationFactory applicationFactory, JiraAuthenticationContext jiraAuthenticationContext)

Public Methods

public TrustedApplication addTrustedApplication (Application app, RequestConditions conditions)

Adds the specified Trusted Application.

Parameters
conditions the conditions that incoming requests must meet in order to be accepted.
Returns
  • the newly created Trusted Application.

public boolean deleteApplication (String applicationID)

Removes the specified Trusted Application.

Parameters
applicationID the ID of the trusted application.
Returns
  • true if the Trusted Application with the specified ID was found and removed, false if the specified ID was not found.

public Application getApplicationCertificate (String baseUrl)

Retrieve the application certificate from some other application, over HTTP. Will look for the certificate at ${baseUrl}/admin/appTrustCertificate.

Parameters
baseUrl the base URL of the application to be queried
Returns
  • the retrieved application certificate
Throws
ApplicationRetriever.RetrievalException if there are problems with the certificate retrieved from the remote server or the server cannot be contacted
RuntimeException if there are problems retrieving the certificate from the remote server

public CurrentApplication getCurrentApplication ()

public TrustedApplication getTrustedApplication (String id)

public Iterable<TrustedApplication> getTrustedApplications ()

Returns
  • all configured Trusted Applications.