Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.securityconfig
Class SecurityConfigActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.securityconfig.SecurityConfigActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class SecurityConfigActivator
extends Object
implements org.osgi.framework.BundleActivator

Author:
Yana Stamcheva, Dmitri Melnikov

Field Summary
static org.osgi.framework.BundleContext bundleContext
          The BundleContext of the SecurityConfigActivator.
 
Constructor Summary
SecurityConfigActivator()
           
 
Method Summary
static Map<AccountID,String> getAccountIDsWithSavedPasswords()
          Finds all accounts with saved encrypted passwords.
static List<AccountID> getAllAccountIDs()
          Gets all the available accounts in SIP Communicator.
static ConfigurationService getConfigurationService()
          Returns a reference to the ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static CredentialsStorageService getCredentialsStorageService()
          Returns the CredentialsStorageService obtained from the bundle context.
static ResourceManagementService getResources()
          Returns a reference to the ResourceManagementService implementation currently registered in the bundle context or null if no such implementation was found.
static UIService getUIService()
          Gets the UIService instance registered in the BundleContext of the SecurityConfigActivator.
 void start(org.osgi.framework.BundleContext bc)
          Starts this plugin.
 void stop(org.osgi.framework.BundleContext bc)
          Invoked when this bundle is stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

public static org.osgi.framework.BundleContext bundleContext
The BundleContext of the SecurityConfigActivator.

Constructor Detail

SecurityConfigActivator

public SecurityConfigActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Starts this plugin.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - the BundleContext
Throws:
Exception - if some of the operations executed in the start method fails

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Invoked when this bundle is stopped.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - the BundleContext
Throws:
Exception - if some of the operations executed in the start method fails

getResources

public static ResourceManagementService getResources()
Returns a reference to the ResourceManagementService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ResourceManagementService

getConfigurationService

public static ConfigurationService getConfigurationService()
Returns a reference to the ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ConfigurationService.

getCredentialsStorageService

public static CredentialsStorageService getCredentialsStorageService()
Returns the CredentialsStorageService obtained from the bundle context.

Returns:
the CredentialsStorageService obtained from the bundle context

getUIService

public static UIService getUIService()
Gets the UIService instance registered in the BundleContext of the SecurityConfigActivator.

Returns:
the UIService instance registered in the BundleContext of the SecurityConfigActivator

getAllAccountIDs

public static List<AccountID> getAllAccountIDs()
Gets all the available accounts in SIP Communicator.

Returns:
a List of AccountID.

getAccountIDsWithSavedPasswords

public static Map<AccountID,String> getAccountIDsWithSavedPasswords()
Finds all accounts with saved encrypted passwords.

Returns:
a List of AccountID with the saved encrypted password.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.