com.atlassian.sal.trustedapps
Class TrustedAppsPluginCertificateFactory
java.lang.Object
com.atlassian.sal.trustedapps.TrustedAppsPluginCertificateFactory
- All Implemented Interfaces:
- com.atlassian.plugin.StateAware, CertificateFactory
public class TrustedAppsPluginCertificateFactory
- extends Object
- implements CertificateFactory, com.atlassian.plugin.StateAware
This factory has a weak classloading dependency on 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).
|
Method Summary |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrustedAppsPluginCertificateFactory
public TrustedAppsPluginCertificateFactory(org.osgi.framework.BundleContext bundleContext)
createCertificate
public com.atlassian.security.auth.trustedapps.EncryptedCertificate createCertificate(String username)
- Description copied from interface:
CertificateFactory
- Trusted apps > 3.0.0 requires a signature which in turn requires a url.
- Specified by:
createCertificate in interface CertificateFactory
createCertificate
public com.atlassian.security.auth.trustedapps.EncryptedCertificate createCertificate(String username,
String url)
- Description copied from interface:
CertificateFactory
- Create a Trusted Apps certificate.
This will include a signature based the username and url.
- Specified by:
createCertificate in interface CertificateFactory
enabled
public void enabled()
- Specified by:
enabled in interface com.atlassian.plugin.StateAware
disabled
public void disabled()
- Specified by:
disabled in interface com.atlassian.plugin.StateAware
Copyright © 2015 Atlassian. All rights reserved.