Javax.Net.Ssl.SSLContext.Init Method
Initializes this SSLContext instance.

Syntax

[Android.Runtime.Register("init", "([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V", "")]
public void Init (IKeyManager[] km, ITrustManager[] tm, Java.Security.SecureRandom sr)

Parameters

km
the key sources or null for default.
tm
the trust decision sources or null for default.
sr
the randomness source or null for default.

Exceptions

TypeReason
Java.Security.KeyManagementExceptionif initializing this instance fails.

Remarks

Initializes this SSLContext instance. Three aspects of the context can be configured during initialization:

For each type of KeyManager or TrustManager used by this context, only the first matching instance from km or tm will be used. For example, only the first instance of Javax.Net.Ssl.IX509TrustManager from tm will be used.

For any parameter set to null defaults will be used. In that case, the installed security providers will be searched for the highest priority implementation of the required primitives. For km and tm, the highest priority implementation of Javax.Net.Ssl.KeyManagerFactory and Javax.Net.Ssl.TrustManagerFactory will be used to obtain the required types of KeyManager and TrustManager. For sr, the default SecureRandom implementation will be used.

[Android Documentation]

Requirements

Namespace: Javax.Net.Ssl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1