public class TrustedAppsPluginCertificateFactory extends Object implements CertificateFactory, com.atlassian.plugin.StateAware
TrustedApplicationsManager
through an OSGi ServiceTracker, hence the trusted apps plugin does not need to be installed for this class to work
(it will simply throw an exception saying that trusted apps isn't supported).| Constructor and Description |
|---|
TrustedAppsPluginCertificateFactory(org.osgi.framework.BundleContext bundleContext) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.security.auth.trustedapps.EncryptedCertificate |
createCertificate(String username)
Trusted apps > 3.0.0 requires a signature which in turn requires a url.
|
com.atlassian.security.auth.trustedapps.EncryptedCertificate |
createCertificate(String username,
String url)
Create a Trusted Apps certificate.
|
void |
disabled() |
void |
enabled() |
public TrustedAppsPluginCertificateFactory(org.osgi.framework.BundleContext bundleContext)
public com.atlassian.security.auth.trustedapps.EncryptedCertificate createCertificate(String username)
CertificateFactorycreateCertificate in interface CertificateFactorypublic com.atlassian.security.auth.trustedapps.EncryptedCertificate createCertificate(String username, String url)
CertificateFactorycreateCertificate in interface CertificateFactorypublic void enabled()
enabled in interface com.atlassian.plugin.StateAwarepublic void disabled()
disabled in interface com.atlassian.plugin.StateAwareCopyright © 2019 Atlassian. All rights reserved.