Class InsecureTrustManagerFactory
java.lang.Object
javax.net.ssl.TrustManagerFactory
io.netty.handler.ssl.util.SimpleTrustManagerFactory
io.netty.handler.ssl.util.InsecureTrustManagerFactory
An insecure
TrustManagerFactory 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class SimpleTrustManagerFactory
SimpleTrustManagerFactory.SimpleTrustManagerFactorySpi -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final javax.net.ssl.TrustManagerFactoryprivate static final InternalLoggerprivate static final javax.net.ssl.TrustManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.net.ssl.TrustManager[]Returns one trust manager for each type of trust material.protected voidengineInit(java.security.KeyStore keyStore) Initializes this factory with a source of certificate authorities and related trust material.protected voidengineInit(javax.net.ssl.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, initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
logger
-
INSTANCE
public static final javax.net.ssl.TrustManagerFactory INSTANCE -
tm
private static final javax.net.ssl.TrustManager tm
-
-
Constructor Details
-
InsecureTrustManagerFactory
private InsecureTrustManagerFactory()
-
-
Method Details
-
engineInit
protected void engineInit(java.security.KeyStore keyStore) throws java.lang.Exception Description copied from class:SimpleTrustManagerFactoryInitializes this factory with a source of certificate authorities and related trust material.- Specified by:
engineInitin classSimpleTrustManagerFactory- Throws:
java.lang.Exception- See Also:
-
engineInit
protected void engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters) throws java.lang.Exception Description copied from class:SimpleTrustManagerFactoryInitializes this factory with a source of provider-specific key material.- Specified by:
engineInitin classSimpleTrustManagerFactory- Throws:
java.lang.Exception- See Also:
-
engineGetTrustManagers
protected javax.net.ssl.TrustManager[] engineGetTrustManagers()Description copied from class:SimpleTrustManagerFactoryReturns one trust manager for each type of trust material.- Specified by:
engineGetTrustManagersin classSimpleTrustManagerFactory- See Also:
-