SSLSocketFactory Constructors
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
| Name | Description |
|---|---|
| SSLSocketFactory(KeyStore) |
Creates the default SSL socket factory. |
| SSLSocketFactory(KeyStore, String) |
Creates the default SSL socket factory. |
| SSLSocketFactory(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| SSLSocketFactory(KeyStore, String, KeyStore) |
Creates the default SSL socket factory. |
| SSLSocketFactory(String, KeyStore, String, KeyStore, SecureRandom, IHostNameResolver) |
Creates the default SSL socket factory. |
SSLSocketFactory(KeyStore)
Creates the default SSL socket factory.
[Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;)V", "")]
public SSLSocketFactory(Java.Security.KeyStore? truststore);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;)V", "")>]
new Org.Apache.Http.Conn.Ssl.SSLSocketFactory : Java.Security.KeyStore -> Org.Apache.Http.Conn.Ssl.SSLSocketFactory
Parameters
- truststore
- KeyStore
The key store containing trusted server certificates.
- Attributes
Exceptions
Remarks
Java documentation for org.apache.http.conn.ssl.SSLSocketFactory.SSLSocketFactory().
Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.
Applies to
SSLSocketFactory(KeyStore, String)
Creates the default SSL socket factory.
[Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;Ljava/lang/String;)V", "")]
public SSLSocketFactory(Java.Security.KeyStore? keystore, string? keystorePassword);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;Ljava/lang/String;)V", "")>]
new Org.Apache.Http.Conn.Ssl.SSLSocketFactory : Java.Security.KeyStore * string -> Org.Apache.Http.Conn.Ssl.SSLSocketFactory
Parameters
- keystore
- KeyStore
The key store containing the client private key and certificate.
- keystorePassword
- String
The password for the private key in keystore.
- Attributes
Exceptions
Remarks
Java documentation for org.apache.http.conn.ssl.SSLSocketFactory.SSLSocketFactory().
Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.
Applies to
SSLSocketFactory(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected SSLSocketFactory(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Apache.Http.Conn.Ssl.SSLSocketFactory : nativeint * Android.Runtime.JniHandleOwnership -> Org.Apache.Http.Conn.Ssl.SSLSocketFactory
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.
Applies to
SSLSocketFactory(KeyStore, String, KeyStore)
Creates the default SSL socket factory.
[Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;)V", "")]
public SSLSocketFactory(Java.Security.KeyStore? keystore, string? keystorePassword, Java.Security.KeyStore? truststore);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;)V", "")>]
new Org.Apache.Http.Conn.Ssl.SSLSocketFactory : Java.Security.KeyStore * string * Java.Security.KeyStore -> Org.Apache.Http.Conn.Ssl.SSLSocketFactory
Parameters
- keystore
- KeyStore
The key store containing the client private key and certificate.
- keystorePassword
- String
The password for the private key in keystore.
- truststore
- KeyStore
The key store containing trusted server certificates.
- Attributes
Exceptions
Remarks
Java documentation for org.apache.http.conn.ssl.SSLSocketFactory.SSLSocketFactory().
Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.
Applies to
SSLSocketFactory(String, KeyStore, String, KeyStore, SecureRandom, IHostNameResolver)
Creates the default SSL socket factory.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;Ljava/security/SecureRandom;Lorg/apache/http/conn/scheme/HostNameResolver;)V", "")]
public SSLSocketFactory(string? algorithm, Java.Security.KeyStore? keystore, string? keystorePassword, Java.Security.KeyStore? truststore, Java.Security.SecureRandom? random, Org.Apache.Http.Conn.Schemes.IHostNameResolver? nameResolver);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;Ljava/security/SecureRandom;Lorg/apache/http/conn/scheme/HostNameResolver;)V", "")>]
new Org.Apache.Http.Conn.Ssl.SSLSocketFactory : string * Java.Security.KeyStore * string * Java.Security.KeyStore * Java.Security.SecureRandom * Org.Apache.Http.Conn.Schemes.IHostNameResolver -> Org.Apache.Http.Conn.Ssl.SSLSocketFactory
Parameters
- algorithm
- String
The SSL context algorithm, or null to use TLS.
- keystore
- KeyStore
The key store containing the client private key and certificate, or null.
- keystorePassword
- String
The password for the private key in keystore.
- truststore
- KeyStore
The key store containing trusted server certificates, or null.
- random
- SecureRandom
The source of randomness for the SSL context, or null.
- nameResolver
- IHostNameResolver
The host-name resolver used for connections, or null.
- Attributes
Exceptions
Remarks
Java documentation for org.apache.http.conn.ssl.SSLSocketFactory.SSLSocketFactory().
Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.