public class SeraphTrustedApplicationsManager extends Object implements com.atlassian.security.auth.trustedapps.TrustedApplicationsManager, com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
TrustedApplicationsManager| Constructor and Description |
|---|
SeraphTrustedApplicationsManager(TrustedApplicationManager manager,
CurrentApplicationFactory applicationFactory,
JiraAuthenticationContext jiraAuthenticationContext) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 |
getCurrentApplication() |
com.atlassian.security.auth.trustedapps.TrustedApplication |
getTrustedApplication(String id) |
Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> |
getTrustedApplications() |
public SeraphTrustedApplicationsManager(TrustedApplicationManager manager, CurrentApplicationFactory applicationFactory, JiraAuthenticationContext jiraAuthenticationContext)
public com.atlassian.security.auth.trustedapps.TrustedApplication getTrustedApplication(String id)
getTrustedApplication in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsManagerpublic com.atlassian.security.auth.trustedapps.CurrentApplication getCurrentApplication()
getCurrentApplication in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsManagerpublic Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> getTrustedApplications()
getTrustedApplications in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManagerpublic com.atlassian.security.auth.trustedapps.TrustedApplication addTrustedApplication(com.atlassian.security.auth.trustedapps.Application app,
com.atlassian.security.auth.trustedapps.RequestConditions conditions)
addTrustedApplication in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManagerconditions - the conditions that incoming requests must meet in order to be accepted.public boolean deleteApplication(String applicationID)
deleteApplication in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManagerapplicationID - the ID of the trusted application.true if the Trusted Application with the specified ID was found and removed, false if the
specified ID was not found.public com.atlassian.security.auth.trustedapps.Application getApplicationCertificate(String baseUrl) throws com.atlassian.security.auth.trustedapps.ApplicationRetriever.RetrievalException
${baseUrl}/admin/appTrustCertificate.getApplicationCertificate in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManagerbaseUrl - the base URL of the application to be queriedcom.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 serverCopyright © 2002-2021 Atlassian. All Rights Reserved.