Class XdsTrustManagerFactory
java.lang.Object
javax.net.ssl.TrustManagerFactory
io.netty.handler.ssl.util.SimpleTrustManagerFactory
io.grpc.xds.internal.security.trust.XdsTrustManagerFactory
public final class XdsTrustManagerFactory
extends io.netty.handler.ssl.util.SimpleTrustManagerFactory
Factory class used to provide a
XdsX509TrustManager for trust and SAN checks.-
Constructor Summary
ConstructorsConstructorDescriptionXdsTrustManagerFactory(CertificateValidationContext certificateValidationContext) Constructor constructs from aCertificateValidationContext.XdsTrustManagerFactory(X509Certificate[] certs, CertificateValidationContext staticCertificateValidationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected TrustManager[]protected voidengineInit(KeyStore keyStore) protected voidengineInit(ManagerFactoryParameters managerFactoryParameters) Methods inherited from class TrustManagerFactory
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getProvider, getTrustManagers, init, init
-
Constructor Details
-
XdsTrustManagerFactory
public XdsTrustManagerFactory(CertificateValidationContext certificateValidationContext) throws CertificateException, IOException, CertStoreException Constructor constructs from aCertificateValidationContext. -
XdsTrustManagerFactory
public XdsTrustManagerFactory(X509Certificate[] certs, CertificateValidationContext staticCertificateValidationContext) throws CertStoreException - Throws:
CertStoreException
-
-
Method Details
-
engineInit
-
engineInit
- Specified by:
engineInitin classio.netty.handler.ssl.util.SimpleTrustManagerFactory- Throws:
Exception
-
engineGetTrustManagers
- Specified by:
engineGetTrustManagersin classio.netty.handler.ssl.util.SimpleTrustManagerFactory
-