Package javax.net.ssl

Class TrustManagerFactorySpi

  • Direct Known Subclasses:
    TrustManagerFactoryImpl

    public abstract class TrustManagerFactorySpi
    extends Object
    The Service Provider Interface (SPI) for the TrustManagerFactory class.
    • Constructor Detail

      • TrustManagerFactorySpi

        public TrustManagerFactorySpi()
        Creates a new TrustManagerFactorySpi instance.
    • 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 or null.
        Throws:
        KeyStoreException - 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