public final class InsecureTrustManagerFactory extends SimpleTrustManagerFactory
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.
Modifier and Type | Field and Description |
---|---|
static TrustManagerFactory |
INSTANCE |
Modifier and Type | Method and 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.
|
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getProvider, getTrustManagers, init, init
public static final TrustManagerFactory INSTANCE
protected void engineInit(KeyStore keyStore) throws Exception
SimpleTrustManagerFactory
engineInit
in class SimpleTrustManagerFactory
Exception
TrustManagerFactorySpi.engineInit(KeyStore)
protected void engineInit(ManagerFactoryParameters managerFactoryParameters) throws Exception
SimpleTrustManagerFactory
engineInit
in class SimpleTrustManagerFactory
Exception
TrustManagerFactorySpi.engineInit(ManagerFactoryParameters)
protected TrustManager[] engineGetTrustManagers()
SimpleTrustManagerFactory
engineGetTrustManagers
in class SimpleTrustManagerFactory
TrustManagerFactorySpi.engineGetTrustManagers()
Copyright © 2008–2024 The Netty Project. All rights reserved.