Package org.jboss.netty.handler.ssl.util
Class InsecureTrustManagerFactory
- java.lang.Object
-
- javax.net.ssl.TrustManagerFactory
-
- org.jboss.netty.handler.ssl.util.SimpleTrustManagerFactory
-
- org.jboss.netty.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.netty.handler.ssl.util.SimpleTrustManagerFactory
SimpleTrustManagerFactory.SimpleTrustManagerFactorySpi
-
-
Field Summary
Fields Modifier and Type Field Description static javax.net.ssl.TrustManagerFactory
INSTANCE
private static InternalLogger
logger
private static javax.net.ssl.TrustManager
tm
-
Constructor Summary
Constructors Modifier Constructor Description private
InsecureTrustManagerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.net.ssl.TrustManager[]
engineGetTrustManagers()
Returns one trust manager for each type of trust material.protected void
engineInit(java.security.KeyStore keyStore)
Initializes this factory with a source of certificate authorities and related trust material.protected void
engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)
Initializes this factory with a source of provider-specific key material.
-
-
-
Field Detail
-
logger
private static final InternalLogger logger
-
INSTANCE
public static final javax.net.ssl.TrustManagerFactory INSTANCE
-
tm
private static final javax.net.ssl.TrustManager tm
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.KeyStore keyStore) throws java.lang.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:
java.lang.Exception
- See Also:
TrustManagerFactorySpi.engineInit(KeyStore)
-
engineInit
protected void engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters) throws java.lang.Exception
Description copied from class:SimpleTrustManagerFactory
Initializes this factory with a source of provider-specific key material.- Specified by:
engineInit
in classSimpleTrustManagerFactory
- Throws:
java.lang.Exception
- See Also:
TrustManagerFactorySpi.engineInit(ManagerFactoryParameters)
-
engineGetTrustManagers
protected javax.net.ssl.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()
-
-