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 Details

    • TrustManagerFactorySpi

      public TrustManagerFactorySpi()
      Creates a new TrustManagerFactorySpi instance.
  • Method Details

    • 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 or null.
      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 of TrustManagers with one entry for each type of trust material.
      Returns:
      the list of TrustManagers