public class

Providers

extends Object
java.lang.Object
   ↳ sun.security.jca.Providers

Class Overview

Collection of methods to get and set provider list. Also includes special code for the provider list during JAR verification.

Summary

Public Methods
synchronized static ProviderList beginThreadProviderList(ProviderList list)
Methods to manipulate the thread local provider list.
synchronized static void endThreadProviderList(ProviderList list)
synchronized static ProviderList getFullProviderList()
Get the full provider list with invalid providers (those that could not be loaded) removed.
static ProviderList getProviderList()
Return the current ProviderList.
static Provider getSunProvider()
static ProviderList getThreadProviderList()
static void setProviderList(ProviderList newList)
Set the current ProviderList.
static Object startJarVerification()
Start JAR verification.
static void stopJarVerification(Object obj)
Stop JAR verification.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static synchronized ProviderList beginThreadProviderList (ProviderList list)

Methods to manipulate the thread local provider list. It is for use by JAR verification (see above) and the SunJSSE FIPS mode only. It should be used as follows: ProviderList list = ...; ProviderList oldList = Providers.beginThreadProviderList(list); try { // code that needs thread local provider list } finally { Providers.endThreadProviderList(oldList); }

public static synchronized void endThreadProviderList (ProviderList list)

public static synchronized ProviderList getFullProviderList ()

Get the full provider list with invalid providers (those that could not be loaded) removed. This is the list we need to present to applications.

public static ProviderList getProviderList ()

Return the current ProviderList. If the thread-local list is set, it is returned. Otherwise, the system wide list is returned.

public static Provider getSunProvider ()

public static ProviderList getThreadProviderList ()

public static void setProviderList (ProviderList newList)

Set the current ProviderList. Affects the thread-local list if set, otherwise the system wide list.

public static Object startJarVerification ()

Start JAR verification. This sets a special provider list for the current thread. You MUST save the return value from this method and you MUST call stopJarVerification() with that object once you are done.

public static void stopJarVerification (Object obj)

Stop JAR verification. Call once you have completed JAR verification.