KeyManagerFactory.Init Method

Definition

Overloads

Init(IManagerFactoryParameters)

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

Init(KeyStore, Char[])

Initializes this factory with a source of key material.

Init(IManagerFactoryParameters)

Initializes this factory with a source of provider-specific key 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

Remarks

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

In some cases, initialization parameters other than a keystore and password 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.KeyManagerFactory.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

Init(KeyStore, Char[])

Initializes this factory with a source of key material.

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

Parameters

ks
KeyStore

the key store or null

password
Char[]

the password for recovering keys in the KeyStore

Attributes

Exceptions

if initializing this key manager factory fails.

if a required algorithm is not available.

if a key cannot be recovered.

Remarks

Initializes this factory with a source of key material.

The provider typically uses a KeyStore for obtaining key material for use during secure socket negotiations. The KeyStore is generally password-protected.

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

Java documentation for javax.net.ssl.KeyManagerFactory.init(java.security.KeyStore, char[]).

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