public class DefaultTrustedApplicationsManager extends Object implements TrustedApplicationsManager, KeyPairInitialiser, TrustedTokenFactory, com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
Constructor and Description |
---|
DefaultTrustedApplicationsManager() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.security.auth.trustedapps.TrustedApplication |
addTrustedApplication(com.atlassian.security.auth.trustedapps.Application in,
com.atlassian.security.auth.trustedapps.RequestConditions conditions) |
boolean |
deleteApplication(String id) |
void |
deleteTrustedApplication(ConfluenceTrustedApplication trustedApplication) |
Collection<ConfluenceTrustedApplication> |
getAllTrustedApplications()
Return a list of all the trusted application aliases.
|
com.atlassian.security.auth.trustedapps.Application |
getApplicationCertificate(String baseUrl) |
com.atlassian.security.auth.trustedapps.CurrentApplication |
getCurrentApplication()
Return the public and private keys for the currently running instance
|
TrustedToken |
getToken(String url) |
ConfluenceTrustedApplication |
getTrustedApplication(long id) |
ConfluenceTrustedApplication |
getTrustedApplicationByAlias(String alias) |
ConfluenceTrustedApplication |
getTrustedApplicationByName(String applicationName) |
Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> |
getTrustedApplications() |
void |
initConfluenceKey() |
void |
saveTrustedApplication(ConfluenceTrustedApplication trustedApplication) |
void |
setAsymmetricKeyFactory(AsymmetricKeyFactory asymmetricKeyFactory) |
void |
setCurrentApplicationIdProvider(CurrentApplicationIdProvider currentApplicationIdProvider) |
void |
setEncryptionProvider(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider) |
void |
setKeyStoreDao(KeyStore keyStoreDao) |
void |
setTrustedApplicationDao(TrustedApplicationDao trustedApplicationDao) |
public void saveTrustedApplication(ConfluenceTrustedApplication trustedApplication)
saveTrustedApplication
in interface TrustedApplicationsManager
public void deleteTrustedApplication(ConfluenceTrustedApplication trustedApplication)
deleteTrustedApplication
in interface TrustedApplicationsManager
public ConfluenceTrustedApplication getTrustedApplicationByAlias(String alias)
getTrustedApplicationByAlias
in interface TrustedApplicationsManager
public TrustedToken getToken(String url)
getToken
in interface TrustedTokenFactory
url
- the request url to get a token for.public Collection<ConfluenceTrustedApplication> getAllTrustedApplications()
TrustedApplicationsManager
getAllTrustedApplications
in interface TrustedApplicationsManager
public com.atlassian.security.auth.trustedapps.CurrentApplication getCurrentApplication()
getCurrentApplication
in interface TrustedApplicationsManager
public void initConfluenceKey() throws NoSuchProviderException, NoSuchAlgorithmException
initConfluenceKey
in interface KeyPairInitialiser
NoSuchProviderException
NoSuchAlgorithmException
public void setKeyStoreDao(KeyStore keyStoreDao)
public void setTrustedApplicationDao(TrustedApplicationDao trustedApplicationDao)
public void setAsymmetricKeyFactory(AsymmetricKeyFactory asymmetricKeyFactory)
public void setEncryptionProvider(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
public void setCurrentApplicationIdProvider(CurrentApplicationIdProvider currentApplicationIdProvider)
public ConfluenceTrustedApplication getTrustedApplication(long id)
getTrustedApplication
in interface TrustedApplicationsManager
public ConfluenceTrustedApplication getTrustedApplicationByName(String applicationName)
getTrustedApplicationByName
in interface TrustedApplicationsManager
public com.atlassian.security.auth.trustedapps.Application getApplicationCertificate(String baseUrl) throws com.atlassian.security.auth.trustedapps.ApplicationRetriever.RetrievalException
getApplicationCertificate
in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
com.atlassian.security.auth.trustedapps.ApplicationRetriever.RetrievalException
public com.atlassian.security.auth.trustedapps.TrustedApplication addTrustedApplication(com.atlassian.security.auth.trustedapps.Application in, com.atlassian.security.auth.trustedapps.RequestConditions conditions)
addTrustedApplication
in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
public boolean deleteApplication(String id)
deleteApplication
in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
public Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> getTrustedApplications()
getTrustedApplications
in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
Copyright © 2003–2021 Atlassian. All rights reserved.