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 TrustedApplicationsManager
public void deleteTrustedApplication(ConfluenceTrustedApplication trustedApplication)
deleteTrustedApplication
in interface TrustedApplicationsManager
public ConfluenceTrustedApplication getTrustedApplicationByAlias(String alias)
getTrustedApplicationByAlias
in interface TrustedApplicationsManager
@Deprecated public TrustedToken getToken()
getToken
in interface TrustedTokenFactory
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–2017 Atlassian. All rights reserved.