- java.lang.Object
-
- javax.net.ssl.TrustManagerFactory
-
- io.netty5.handler.ssl.util.SimpleTrustManagerFactory
-
- io.netty5.handler.ssl.util.InsecureTrustManagerFactory
-
public final class InsecureTrustManagerFactory extends SimpleTrustManagerFactory
An insecureTrustManagerFactory
that trusts all X.509 certificates without any verification.NOTE: Never use this
TrustManagerFactory
in production. It is purely for testing purposes, and thus it is very insecure.
-
-
Field Summary
Fields Modifier and Type Field Description static TrustManagerFactory
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TrustManager[]
engineGetTrustManagers()
Returns one trust manager for each type of trust material.protected void
engineInit(KeyStore keyStore)
Initializes this factory with a source of certificate authorities and related trust material.protected 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
-
-
-
-
Field Detail
-
INSTANCE
public static final TrustManagerFactory INSTANCE
-
-
Method Detail
-
engineInit
protected void engineInit(KeyStore keyStore) throws Exception
Description copied from class:SimpleTrustManagerFactory
Initializes this factory with a source of certificate authorities and related trust material.- Specified by:
engineInit
in classSimpleTrustManagerFactory
- Throws:
Exception
- See Also:
TrustManagerFactorySpi.engineInit(KeyStore)
-
engineInit
protected void engineInit(ManagerFactoryParameters managerFactoryParameters) throws Exception
Description copied from class:SimpleTrustManagerFactory
Initializes this factory with a source of provider-specific key material.- Specified by:
engineInit
in classSimpleTrustManagerFactory
- Throws:
Exception
- See Also:
TrustManagerFactorySpi.engineInit(ManagerFactoryParameters)
-
engineGetTrustManagers
protected TrustManager[] engineGetTrustManagers()
Description copied from class:SimpleTrustManagerFactory
Returns one trust manager for each type of trust material.- Specified by:
engineGetTrustManagers
in classSimpleTrustManagerFactory
- See Also:
TrustManagerFactorySpi.engineGetTrustManagers()
-
-