@Transactional public class ApplicationSamlConfigurationServiceImpl extends Object implements ApplicationSamlConfigurationService
Constructor and Description |
---|
ApplicationSamlConfigurationServiceImpl(ApplicationSamlConfigurationDAO applicationSamlConfigurationDao,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
Optional<ApplicationSamlConfiguration> |
findByAssertionConsumerAndAudience(String assertionConsumerServiceURL,
String audience)
Returns the SAML SSO configuration for the specified assertion consumer url and audience.
|
Optional<ApplicationSamlConfiguration> |
loadConfigurationForApplication(Application application)
Returns the SAML SSO configuration for the specified application
|
BaseApplicationSamlConfiguration |
parseApplicationMetadata(InputStream metadataXml)
Parses SAML SSO configuration for an application based on the provided XML metadata.
|
void |
storeApplicationConfiguration(ApplicationSamlConfiguration configuration)
Creates or updates SAML SSO configuration for an application
|
public ApplicationSamlConfigurationServiceImpl(ApplicationSamlConfigurationDAO applicationSamlConfigurationDao, com.atlassian.event.api.EventPublisher eventPublisher)
public void storeApplicationConfiguration(ApplicationSamlConfiguration configuration) throws OperationFailedException, InvalidApplicationSamlConfigurationException
ApplicationSamlConfigurationService
storeApplicationConfiguration
in interface ApplicationSamlConfigurationService
configuration
- the configuration to save or updateOperationFailedException
InvalidApplicationSamlConfigurationException
public Optional<ApplicationSamlConfiguration> loadConfigurationForApplication(Application application)
ApplicationSamlConfigurationService
loadConfigurationForApplication
in interface ApplicationSamlConfigurationService
application
- the application for which the configuration should be fetchedpublic Optional<ApplicationSamlConfiguration> findByAssertionConsumerAndAudience(String assertionConsumerServiceURL, String audience)
ApplicationSamlConfigurationService
findByAssertionConsumerAndAudience
in interface ApplicationSamlConfigurationService
assertionConsumerServiceURL
- SSO application assertion consumer urlaudience
- SSO application audiencepublic BaseApplicationSamlConfiguration parseApplicationMetadata(InputStream metadataXml)
ApplicationSamlConfigurationService
parseApplicationMetadata
in interface ApplicationSamlConfigurationService
metadataXml
- stream with XML metadata, will be closed by this methodCopyright © 2021 Atlassian. All rights reserved.