com.atlassian.jira.security.auth.trustedapps
Class SeraphTrustedApplicationsManager

java.lang.Object
  extended by 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
SeraphTrustedApplicationsManager(TrustedApplicationManager manager, CurrentApplicationFactory applicationFactory, JiraAuthenticationContext jiraAuthenticationContext)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeraphTrustedApplicationsManager

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

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.