- java.lang.Object
-
- javax.net.ssl.TrustManagerFactory
-
- io.netty5.handler.ssl.util.SimpleTrustManagerFactory
-
- Direct Known Subclasses:
FingerprintTrustManagerFactory
,InsecureTrustManagerFactory
,TrustManagerFactoryWrapper
public abstract class SimpleTrustManagerFactory extends TrustManagerFactory
Helps to implement a customTrustManagerFactory
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimpleTrustManagerFactory()
Creates a new instance.protected
SimpleTrustManagerFactory(String name)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract TrustManager[]
engineGetTrustManagers()
Returns one trust manager for each type of trust material.protected abstract void
engineInit(KeyStore keyStore)
Initializes this factory with a source of certificate authorities and related trust material.protected abstract void
engineInit(ManagerFactoryParameters managerFactoryParameters)
Initializes this factory with a source of provider-specific key material.-
Methods inherited from class javax.net.ssl.TrustManagerFactory
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getProvider, getTrustManagers, init, init
-
-
-
-
Constructor Detail
-
SimpleTrustManagerFactory
protected SimpleTrustManagerFactory()
Creates a new instance.
-
SimpleTrustManagerFactory
protected SimpleTrustManagerFactory(String name)
Creates a new instance.- Parameters:
name
- the name of thisTrustManagerFactory
-
-
Method Detail
-
engineInit
protected abstract void engineInit(KeyStore keyStore) throws Exception
Initializes this factory with a source of certificate authorities and related trust material.- Throws:
Exception
- See Also:
TrustManagerFactorySpi.engineInit(KeyStore)
-
engineInit
protected abstract void engineInit(ManagerFactoryParameters managerFactoryParameters) throws Exception
Initializes this factory with a source of provider-specific key material.- Throws:
Exception
- See Also:
TrustManagerFactorySpi.engineInit(ManagerFactoryParameters)
-
engineGetTrustManagers
protected abstract TrustManager[] engineGetTrustManagers()
Returns one trust manager for each type of trust material.
-
-