org.dvb.security.provider
Class ProviderManager

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


Constructor Summary
protected ProviderManager()
          Creates a new instance of ProviderManager.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderManager

protected ProviderManager()
Creates a new instance of ProviderManager. This constructor is provided for the use of implementations and specifications which extend this specification. Applications shall not define sub-classes of this class. Implementations are not required to behave correctly if any such application defined sub-classes are used.

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