org.dvb.security.provider
Class ProviderManager

java.lang.Object
  extended by org.dvb.security.provider.ProviderManager

public class ProviderManager
extends java.lang.Object

This class gives access to those cryptographic service providers visible to an application. The cryptographic service providers visible to an application shall include the following;

Where providers of the same name are visible to an application through both the above mechanisms, the Xlet bound provider shall always be used by this class, even if the installed provider has a higher version number. Installed providers can always be accessed through java.security.Security.getProviders.


Method Summary
static ProviderManager getInstance()
          Gets the singleton instance of the ProviderManager
 java.security.Provider getProvider(java.lang.String name)
          Returns a visible provider with the specified name.
 java.security.Provider[] getProviders()
          Returns an array containing all the providers visible to the calling application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProviderManager getInstance()
Gets the singleton instance of the ProviderManager

Returns:
the ProviderManager.

getProvider

public java.security.Provider getProvider(java.lang.String name)
Returns a visible provider with the specified name. If no provider with that name is visible to the calling application then null shall be returned.

Parameters:
name - the name of the provider
Returns:
a provider or null

getProviders

public java.security.Provider[] getProviders()
Returns an array containing all the providers visible to the calling application.

Returns:
an array of providers