public class

GetInstance

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

Class Overview

Collection of utility methods to facilitate implementing getInstance() methods in the JCA/JCE/JSSE/... framework.

Summary

Nested Classes
class GetInstance.Instance Static inner class representing a newly created instance. 
Public Methods
static void checkSuperClass(Provider.Service s, Class subClass, Class superClass)
Check is subClass is a subclass of superClass.
static GetInstance.Instance getInstance(String type, Class clazz, String algorithm, Object param)
static GetInstance.Instance getInstance(String type, Class clazz, String algorithm, Object param, Provider provider)
static GetInstance.Instance getInstance(Provider.Service s, Class clazz)
static GetInstance.Instance getInstance(String type, Class clazz, String algorithm, String provider)
static GetInstance.Instance getInstance(Provider.Service s, Class clazz, Object param)
static GetInstance.Instance getInstance(String type, Class clazz, String algorithm, Object param, String provider)
static GetInstance.Instance getInstance(String type, Class clazz, String algorithm, Provider provider)
static GetInstance.Instance getInstance(String type, Class clazz, String algorithm)
static Provider.Service getService(String type, String algorithm, String provider)
static Provider.Service getService(String type, String algorithm, Provider provider)
static Provider.Service getService(String type, String algorithm)
static List<Provider.Service> getServices(String type, List<String> algorithms)
This method is deprecated. use getServices(List) instead
static List<Provider.Service> getServices(List<ServiceId> ids)
Return a List of all the available Services that implement any of the specified algorithms.
static List<Provider.Service> getServices(String type, String algorithm)
Return a List of all the available Services that implement (type, algorithm).
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void checkSuperClass (Provider.Service s, Class subClass, Class superClass)

Check is subClass is a subclass of superClass. If not, throw a NoSuchAlgorithmException.

public static GetInstance.Instance getInstance (String type, Class clazz, String algorithm, Object param)

public static GetInstance.Instance getInstance (String type, Class clazz, String algorithm, Object param, Provider provider)

public static GetInstance.Instance getInstance (Provider.Service s, Class clazz)

public static GetInstance.Instance getInstance (String type, Class clazz, String algorithm, String provider)

public static GetInstance.Instance getInstance (Provider.Service s, Class clazz, Object param)

public static GetInstance.Instance getInstance (String type, Class clazz, String algorithm, Object param, String provider)

public static GetInstance.Instance getInstance (String type, Class clazz, String algorithm, Provider provider)

public static GetInstance.Instance getInstance (String type, Class clazz, String algorithm)

public static Provider.Service getService (String type, String algorithm, String provider)

public static Provider.Service getService (String type, String algorithm, Provider provider)

public static Provider.Service getService (String type, String algorithm)

public static List<Provider.Service> getServices (String type, List<String> algorithms)

This method is deprecated.
use getServices(List) instead

This method exists for compatibility with JCE only. It will be removed once JCE has been changed to use the replacement method.

public static List<Provider.Service> getServices (List<ServiceId> ids)

Return a List of all the available Services that implement any of the specified algorithms. See getServices(String, String) for detals.

public static List<Provider.Service> getServices (String type, String algorithm)

Return a List of all the available Services that implement (type, algorithm). Note that the list is initialized lazily and Provider loading and lookup is only trigered when necessary.