Condividi tramite


SSLContext.Init(IKeyManager[], ITrustManager[], SecureRandom) Method

Definition

Initializes this context.

[Android.Runtime.Register("init", "([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V", "")]
public void Init (Javax.Net.Ssl.IKeyManager[]? km, Javax.Net.Ssl.ITrustManager[]? tm, Java.Security.SecureRandom? random);
[<Android.Runtime.Register("init", "([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V", "")>]
member this.Init : Javax.Net.Ssl.IKeyManager[] * Javax.Net.Ssl.ITrustManager[] * Java.Security.SecureRandom -> unit

Parameters

km
IKeyManager[]

the sources of authentication keys or null

tm
ITrustManager[]

the sources of peer authentication trust decisions or null

random
SecureRandom

the source of randomness for this generator or null

Attributes

Exceptions

if initializing this instance fails.

Remarks

Initializes this context. Either of the first two parameters may be null in which case the installed security providers will be searched for the highest priority implementation of the appropriate factory. Likewise, the secure random parameter may be null in which case the default implementation will be used.

Only the first instance of a particular key and/or trust manager implementation type in the array is used. (For example, only the first javax.net.ssl.X509KeyManager in the array will be used.)

Java documentation for javax.net.ssl.SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], java.security.SecureRandom).

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