Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.core.comm
Class SystemKeystoreProviderManager


java.lang.Object
  extended by 
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.


Method Summary
  ISystemKeystoreProvider getDefaultProvider ()
          Return the default keystore provider.
static  SystemKeystoreProviderManager getInstance ()
          Return the SystemKeystoreProviderManager Instance.
  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.
  ISystemKeystoreProvider[] getProviders ()
          Return an array of all registered keystore providers.
 boolean hasProvider ()
           
 void registerKeystoreProvider ( Bundle bundle, String className)
          Register a keystore provider for deferred (lazy) loading.
 void registerKeystoreProvider ( ISystemKeystoreProvider ext)
          Register a keystore provider.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire