public class DefaultTrustedApplicationsManager extends Object implements TrustedApplicationsManager, KeyPairInitialiser, TrustedTokenFactory, com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManager
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.log4j.Logger |
log
Deprecated.
since 3.1, use private logger
|
| 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()
Deprecated.
since 5.3.3 use getToken(String url) instead. A url is required for signing in the v2 or v3 protocols of Trusted Apps. v0 and v1 of the protocol which do not require the URL have been removed from Trusted Apps v3.0.2
|
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) |
@Deprecated protected final org.apache.log4j.Logger log
public void saveTrustedApplication(ConfluenceTrustedApplication trustedApplication)
saveTrustedApplication in interface TrustedApplicationsManagerpublic void deleteTrustedApplication(ConfluenceTrustedApplication trustedApplication)
deleteTrustedApplication in interface TrustedApplicationsManagerpublic ConfluenceTrustedApplication getTrustedApplicationByAlias(String alias)
getTrustedApplicationByAlias in interface TrustedApplicationsManager@Deprecated public TrustedToken getToken()
getToken in interface TrustedTokenFactorypublic TrustedToken getToken(String url)
getToken in interface TrustedTokenFactoryurl - the request url to get a token for.public Collection<ConfluenceTrustedApplication> getAllTrustedApplications()
TrustedApplicationsManagergetAllTrustedApplications in interface TrustedApplicationsManagerpublic com.atlassian.security.auth.trustedapps.CurrentApplication getCurrentApplication()
getCurrentApplication in interface TrustedApplicationsManagerpublic void initConfluenceKey()
throws NoSuchProviderException,
NoSuchAlgorithmException
initConfluenceKey in interface KeyPairInitialiserNoSuchProviderExceptionNoSuchAlgorithmExceptionpublic 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 TrustedApplicationsManagerpublic ConfluenceTrustedApplication getTrustedApplicationByName(String applicationName)
getTrustedApplicationByName in interface TrustedApplicationsManagerpublic 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.TrustedApplicationsConfigurationManagercom.atlassian.security.auth.trustedapps.ApplicationRetriever.RetrievalExceptionpublic 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.TrustedApplicationsConfigurationManagerpublic boolean deleteApplication(String id)
deleteApplication in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManagerpublic Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> getTrustedApplications()
getTrustedApplications in interface com.atlassian.security.auth.trustedapps.TrustedApplicationsConfigurationManagerCopyright © 2003–2019 Atlassian. All rights reserved.