Share via


TrustManagerFactory.Init Method

Definition

Overloads

Init(KeyStore)

Initializes this factory with a source of certificate authorities and related trust material.

Init(IManagerFactoryParameters)

Initializes this factory with a source of provider-specific trust material.

Init(KeyStore)

Initializes this factory with a source of certificate authorities and related trust material.

[Android.Runtime.Register("init", "(Ljava/security/KeyStore;)V", "")]
public void Init (Java.Security.KeyStore? ks);
[<Android.Runtime.Register("init", "(Ljava/security/KeyStore;)V", "")>]
member this.Init : Java.Security.KeyStore -> unit

Parameters

ks
KeyStore

the key store, or null

Attributes

Exceptions

if the initialization fails.

Remarks

Initializes this factory with a source of certificate authorities and related trust material.

The provider typically uses a KeyStore as a basis for making trust decisions.

For more flexible initialization, please see #init(ManagerFactoryParameters).

Java documentation for javax.net.ssl.TrustManagerFactory.init(java.security.KeyStore).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Init(IManagerFactoryParameters)

Initializes this factory with a source of provider-specific trust material.

[Android.Runtime.Register("init", "(Ljavax/net/ssl/ManagerFactoryParameters;)V", "")]
public void Init (Javax.Net.Ssl.IManagerFactoryParameters? spec);
[<Android.Runtime.Register("init", "(Ljavax/net/ssl/ManagerFactoryParameters;)V", "")>]
member this.Init : Javax.Net.Ssl.IManagerFactoryParameters -> unit

Parameters

spec
IManagerFactoryParameters

an implementation of a provider-specific parameter specification

Attributes

Exceptions

if the initialization fails.

Remarks

Initializes this factory with a source of provider-specific trust material.

In some cases, initialization parameters other than a keystore may be needed by a provider. Users of that particular provider are expected to pass an implementation of the appropriate ManagerFactoryParameters as defined by the provider. The provider can then call the specified methods in the ManagerFactoryParameters implementation to obtain the needed information.

Java documentation for javax.net.ssl.TrustManagerFactory.init(javax.net.ssl.ManagerFactoryParameters).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to