com.atlassian.sal.trustedapps
Class TrustedAppsPluginCertificateFactory

java.lang.Object
  extended by 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 com.atlassian.security.auth.trustedapps.api.CertificateFactory 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 Summary
TrustedAppsPluginCertificateFactory(org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 com.atlassian.security.auth.trustedapps.EncryptedCertificate createCertificate(String username)
           
 void disabled()
           
 void enabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustedAppsPluginCertificateFactory

public TrustedAppsPluginCertificateFactory(org.osgi.framework.BundleContext bundleContext)
Method Detail

createCertificate

public com.atlassian.security.auth.trustedapps.EncryptedCertificate createCertificate(String username)
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 © 2010 Atlassian. All Rights Reserved.