APIdia Launch Partner
Top Description Inners Constructors Methods
sun.security.jca

public Class GetInstance

extends Object
Class Inheritance
Imports
java.util.*, java.security.*, .Provider.Service

Collection of utility methods to facilitate implementing getInstance() methods in the JCA/JCE/JSSE/... framework.
Author
Andreas Sterbenz
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
GetInstance.Instance

Static inner class representing a newly created instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
checkSuperClass(Provider.Service s, Class<?> subClass, Class<?> superClass)

Check is subClass is a subclass of superClass.

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

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

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

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, Object param, Provider provider)

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

public static Provider.Service
getService(String type, 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 Iterator<Provider.Service>
getServices(String type, String algorithm)

Return an iterator over all the available Services that implement (type, algorithm).

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

Return an iterator over all the available Services that implement any of the specified algorithms.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GetInstanceback to summary
private GetInstance()

Method Detail

checkSuperClassback to summary
public static void checkSuperClass(Provider.Service s, Class<?> subClass, Class<?> superClass) throws NoSuchAlgorithmException

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

getInstanceback to summary
public static GetInstance.Instance getInstance(String type, Class<?> clazz, String algorithm) throws NoSuchAlgorithmException
getInstanceback to summary
public static GetInstance.Instance getInstance(String type, Class<?> clazz, String algorithm, Object param) throws NoSuchAlgorithmException
getInstanceback to summary
public static GetInstance.Instance getInstance(String type, Class<?> clazz, String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException
getInstanceback to summary
public static GetInstance.Instance getInstance(String type, Class<?> clazz, String algorithm, Object param, String provider) throws NoSuchAlgorithmException, NoSuchProviderException
getInstanceback to summary
public static GetInstance.Instance getInstance(String type, Class<?> clazz, String algorithm, Provider provider) throws NoSuchAlgorithmException
getInstanceback to summary
public static GetInstance.Instance getInstance(String type, Class<?> clazz, String algorithm, Object param, Provider provider) throws NoSuchAlgorithmException
getInstanceback to summary
public static GetInstance.Instance getInstance(Provider.Service s, Class<?> clazz) throws NoSuchAlgorithmException
getInstanceback to summary
public static GetInstance.Instance getInstance(Provider.Service s, Class<?> clazz, Object param) throws NoSuchAlgorithmException
getServiceback to summary
public static Provider.Service getService(String type, String algorithm) throws NoSuchAlgorithmException
getServiceback to summary
public static Provider.Service getService(String type, String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException
getServiceback to summary
public static Provider.Service getService(String type, String algorithm, Provider provider) throws NoSuchAlgorithmException
getServicesback to summary
public static Iterator<Provider.Service> getServices(String type, String algorithm)

Return an iterator over all the available Services that implement (type, algorithm). Note that the iterator is initialized lazily and Provider loading and lookup is only triggered when necessary.

getServicesback to summary
public static Iterator<Provider.Service> getServices(List<ServiceId> ids)

Return an iterator over all the available Services that implement any of the specified algorithms. See getServices(String, String) for details.

sun.security.jca back to summary

public final Class GetInstance.Instance

extends Object
Class Inheritance

Static inner class representing a newly created instance.

Field Summary

Modifier and TypeField and Description
public final Object
public final Provider

Constructor Summary

AccessConstructor and Description
private
Instance(Provider provider, Object impl)

Method Summary

Modifier and TypeMethod and Description
public Object[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

implback to summary
public final Object impl
providerback to summary
public final Provider provider

Constructor Detail

Instanceback to summary
private Instance(Provider provider, Object impl)

Method Detail

toArrayback to summary
public Object[] toArray()