Language

AndroidMessageHandler.ConfigureTrustManagerFactory(KeyStore) Method

Definition

Create and configure an instance of TrustManagerFactory. The keyStore parameter is set to the return value of the ConfigureKeyStore(KeyStore) method, so it might be null if the application overrode the method and provided no key store. It will not be null when the default implementation is used. The application can return null from this method in which case AndroidMessageHandler will create its own instance of the trust manager factory provided that the TrustCerts list contains at least one valid certificate. If there are no valid certificates and this method returns null, no custom trust manager will be created since that would make all the HTTPS requests fail.

protected virtual Javax.Net.Ssl.TrustManagerFactory? ConfigureTrustManagerFactory(Java.Security.KeyStore? keyStore);
abstract member ConfigureTrustManagerFactory : Java.Security.KeyStore -> Javax.Net.Ssl.TrustManagerFactory
override this.ConfigureTrustManagerFactory : Java.Security.KeyStore -> Javax.Net.Ssl.TrustManagerFactory

Parameters

keyStore
KeyStore

Key store.

Returns

The trust manager factory.

Applies to