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) |
Obsolete.
Creates an SSL socket factory using the supplied trust store. |
| SSLSocketFactory(KeyStore, String) |
Obsolete.
Creates an SSL socket factory using the supplied key store and password. |
| SSLSocketFactory(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| SSLSocketFactory(KeyStore, String, KeyStore) |
Obsolete.
Creates an SSL socket factory using the supplied key store, password, and trust store. |
| SSLSocketFactory(String, KeyStore, String, KeyStore, SecureRandom, IHostNameResolver) |
Obsolete.
Creates an SSL socket factory using the supplied SSL context settings and host-name resolver. |
SSLSocketFactory(KeyStore)
Caution
deprecated
Creates an SSL socket factory using the supplied trust store.
[Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;)V", "")]
[System.Obsolete("deprecated")]
public SSLSocketFactory(Java.Security.KeyStore? truststore);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;)V", "")>]
[<System.Obsolete("deprecated")>]
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
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)
Caution
deprecated
Creates an SSL socket factory using the supplied key store and password.
[Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;Ljava/lang/String;)V", "")]
[System.Obsolete("deprecated")]
public SSLSocketFactory(Java.Security.KeyStore? keystore, string? keystorePassword);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;Ljava/lang/String;)V", "")>]
[<System.Obsolete("deprecated")>]
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
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)
Caution
deprecated
Creates an SSL socket factory using the supplied key store, password, and trust store.
[Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;)V", "")]
[System.Obsolete("deprecated")]
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", "")>]
[<System.Obsolete("deprecated")>]
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
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)
Caution
deprecated
Creates an SSL socket factory using the supplied SSL context settings and host-name resolver.
[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", "")]
[System.Obsolete("deprecated")]
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", "")>]
[<System.Obsolete("deprecated")>]
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
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.