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 Details

  • Method Details

    • getTrustedApplication

      public com.atlassian.security.auth.trustedapps.TrustedApplication getTrustedApplication(String id)
      Specified by:
      getTrustedApplication in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsManager
    • getCurrentApplication

      public com.atlassian.security.auth.trustedapps.CurrentApplication getCurrentApplication()
      Specified by:
      getCurrentApplication in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsManager
    • getTrustedApplications

      public Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> getTrustedApplications()
      Specified by:
      getTrustedApplications in interface com.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 interface com.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

      public boolean deleteApplication(String applicationID)
      Removes the specified Trusted Application.
      Specified by:
      deleteApplication in interface com.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 interface com.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 contacted
      RuntimeException - if there are problems retrieving the certificate from the remote server