Class SeraphTrustedApplicationsManager
java.lang.Object
com.atlassian.jira.security.auth.trustedapps.SeraphTrustedApplicationsManager
- All Implemented Interfaces:
com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
,com.atlassian.security.auth.trustedapps.TrustedApplicationsManager
public class SeraphTrustedApplicationsManager
extends Object
implements com.atlassian.security.auth.trustedapps.TrustedApplicationsManager, com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
Implements the
TrustedApplicationsManager
- Since:
- v3.12
-
Constructor Summary
ConstructorsConstructorDescriptionSeraphTrustedApplicationsManager
(TrustedApplicationManager manager, CurrentApplicationFactory applicationFactory, JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.security.auth.trustedapps.TrustedApplication
addTrustedApplication
(com.atlassian.security.auth.trustedapps.Application app, com.atlassian.security.auth.trustedapps.RequestConditions conditions) Adds the specified Trusted Application.boolean
deleteApplication
(String applicationID) Removes the specified Trusted Application.com.atlassian.security.auth.trustedapps.Application
getApplicationCertificate
(String baseUrl) Retrieve the application certificate from some other application, over HTTP.com.atlassian.security.auth.trustedapps.CurrentApplication
com.atlassian.security.auth.trustedapps.TrustedApplication
Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication>
-
Constructor Details
-
SeraphTrustedApplicationsManager
public SeraphTrustedApplicationsManager(TrustedApplicationManager manager, CurrentApplicationFactory applicationFactory, JiraAuthenticationContext jiraAuthenticationContext)
-
-
Method Details
-
getTrustedApplication
- Specified by:
getTrustedApplication
in interfacecom.atlassian.security.auth.trustedapps.TrustedApplicationsManager
-
getCurrentApplication
public com.atlassian.security.auth.trustedapps.CurrentApplication getCurrentApplication()- Specified by:
getCurrentApplication
in interfacecom.atlassian.security.auth.trustedapps.TrustedApplicationsManager
-
getTrustedApplications
public Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> getTrustedApplications()- Specified by:
getTrustedApplications
in interfacecom.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
- Returns:
- all configured Trusted Applications.
-
addTrustedApplication
public com.atlassian.security.auth.trustedapps.TrustedApplication addTrustedApplication(com.atlassian.security.auth.trustedapps.Application app, com.atlassian.security.auth.trustedapps.RequestConditions conditions) Adds the specified Trusted Application.- Specified by:
addTrustedApplication
in interfacecom.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
- Parameters:
conditions
- the conditions that incoming requests must meet in order to be accepted.- Returns:
- the newly created Trusted Application.
-
deleteApplication
Removes the specified Trusted Application.- Specified by:
deleteApplication
in interfacecom.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
- 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.
-
getApplicationCertificate
public com.atlassian.security.auth.trustedapps.Application getApplicationCertificate(String baseUrl) throws com.atlassian.security.auth.trustedapps.ApplicationRetriever.RetrievalException Retrieve the application certificate from some other application, over HTTP. Will look for the certificate at${baseUrl}/admin/appTrustCertificate
.- Specified by:
getApplicationCertificate
in interfacecom.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
- Parameters:
baseUrl
- the base URL of the application to be queried- Returns:
- the retrieved application certificate
- Throws:
com.atlassian.security.auth.trustedapps.ApplicationRetriever.RetrievalException
- if there are problems with the certificate retrieved from the remote server or the server cannot be contactedRuntimeException
- if there are problems retrieving the certificate from the remote server
-