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 theTrustManagerFactoryclass.
-
-
Constructor Summary
Constructors Constructor Description TrustManagerFactorySpi()Creates a newTrustManagerFactorySpiinstance.
-
Method Summary
All Methods Instance Methods Abstract Methods 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.
-
-
-
Method Detail
-
engineInit
protected abstract void engineInit(KeyStore ks) throws KeyStoreException
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 InvalidAlgorithmParameterException
Initializes 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
protected abstract TrustManager[] engineGetTrustManagers()
Returns the list ofTrustManagers with one entry for each type of trust material.- Returns:
- the list of
TrustManagers
-
-