Package javax.net.ssl
Class TrustManagerFactorySpi
java.lang.Object
javax.net.ssl.TrustManagerFactorySpi
- Direct Known Subclasses:
TrustManagerFactoryImpl
public abstract class TrustManagerFactorySpi extends Object
The Service Provider Interface (SPI) for the
TrustManagerFactory class.-
Constructor Summary
Constructors Constructor Description TrustManagerFactorySpi()Creates a newTrustManagerFactorySpiinstance. -
Method Summary
Modifier and Type Method Description protected abstract TrustManager[]engineGetTrustManagers()Returns the list ofTrustManagers with one entry for each type of trust material.protected abstract voidengineInit(KeyStore ks)Initializes this factory instance with the specified keystore as source of certificate authorities and trust material.protected abstract voidengineInit(ManagerFactoryParameters spec)Initializes this factory instance with the specified provider-specific parameters for a source of trust material.
-
Constructor Details
-
TrustManagerFactorySpi
public TrustManagerFactorySpi()Creates a newTrustManagerFactorySpiinstance.
-
-
Method Details
-
engineInit
Initializes this factory instance with the specified keystore as source of certificate authorities and trust material.- Parameters:
ks- the keystore ornull.- Throws:
KeyStoreException- if the initialization fails.
-
engineInit
protected abstract void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterExceptionInitializes this factory instance with the specified provider-specific parameters for a source of trust material.- Parameters:
spec- the provider-specific parameters.- Throws:
InvalidAlgorithmParameterException- if the initialization fails.
-
engineGetTrustManagers
Returns the list ofTrustManagers with one entry for each type of trust material.- Returns:
- the list of
TrustManagers
-