TrustManagerFactory.Init Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.