org.eclipse.rse.core.comm
Class SystemKeystoreProviderManager
java.lang.Object
org.eclipse.rse.core.comm.SystemKeystoreProviderManager
-
public class SystemKeystoreProviderManager
- extends
Object
A Registry of keystore providers, with the ability to instantiate
providers lazily when needed.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
getInstance
public static
SystemKeystoreProviderManager getInstance()
- Return the SystemKeystoreProviderManager Instance.
-
-
Returns:
- the singleton instance.
registerKeystoreProvider
public void registerKeystoreProvider(
ISystemKeystoreProvider ext)
- Register a keystore provider.
-
-
Parameters:
-
ext
- keystore provider to register.
registerKeystoreProvider
public void registerKeystoreProvider(
Bundle bundle,
String className)
- Register a keystore provider for deferred (lazy) loading.
-
-
Parameters:
-
bundle
- the bundle that declares the extension. The bundle
must be installed and will be activated lazily when trying
to load the given class name. -
className
- fully qualified classname of the keystore provider
declared in the given bundle.
hasProvider
public boolean hasProvider()
-
getProviderAt
public
ISystemKeystoreProvider getProviderAt(int idx)
- Return the keystore provider at the given index in the registry,
or
null
if there is no provider at the given index
or it cannot be loaded.
-
-
Returns:
- An ISystemKeystoreProvider instance, or
null
if no provider is found at the given index.
getDefaultProvider
public
ISystemKeystoreProvider getDefaultProvider()
- Return the default keystore provider.
The default provider is the one which was added last by the
extension registry, and loads properly.
-
-
Returns:
- An ISystemKeystoreProvider instance, or
null
if no provider is found at the given index.
getProviders
public
ISystemKeystoreProvider[] getProviders()
- Return an array of all registered keystore providers.
The default provider is the one which was added last by the
extension registry, and loads properly.
-
-
Returns:
- An array of all registered keystore providers
that load properly.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.