Udostępnij za pośrednictwem


SslError Constructors

Definition

Overloads

SslError(SslErrorType, SslCertificate)
Obsolete.

Creates a new SslError object using the supplied error and certificate.

SslError(SslErrorType, X509Certificate)
Obsolete.

Creates a new SslError object using the supplied error and certificate.

SslError(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SslError(SslErrorType, SslCertificate, String)

Creates a new SslError object using the supplied error, certificate and URL.

SslError(SslErrorType, X509Certificate, String)

Creates a new SslError object using the supplied error, certificate and URL.

SslError(SslErrorType, SslCertificate)

Caution

deprecated

Creates a new SslError object using the supplied error and certificate.

[Android.Runtime.Register(".ctor", "(ILandroid/net/http/SslCertificate;)V", "")]
[System.Obsolete("deprecated")]
public SslError (Android.Net.Http.SslErrorType error, Android.Net.Http.SslCertificate? certificate);
[<Android.Runtime.Register(".ctor", "(ILandroid/net/http/SslCertificate;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Net.Http.SslError : Android.Net.Http.SslErrorType * Android.Net.Http.SslCertificate -> Android.Net.Http.SslError

Parameters

error
SslErrorType

The SSL error

certificate
SslCertificate

The associated SSL certificate

Attributes

Remarks

Creates a new SslError object using the supplied error and certificate. The URL will be set to the empty string.

This member is deprecated. Use #SslError(int, SslCertificate, String)

Java documentation for android.net.http.SslError.SslError(int, android.net.http.SslCertificate).

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

SslError(SslErrorType, X509Certificate)

Caution

deprecated

Creates a new SslError object using the supplied error and certificate.

[Android.Runtime.Register(".ctor", "(ILjava/security/cert/X509Certificate;)V", "")]
[System.Obsolete("deprecated")]
public SslError (Android.Net.Http.SslErrorType error, Java.Security.Cert.X509Certificate? certificate);
[<Android.Runtime.Register(".ctor", "(ILjava/security/cert/X509Certificate;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Net.Http.SslError : Android.Net.Http.SslErrorType * Java.Security.Cert.X509Certificate -> Android.Net.Http.SslError

Parameters

error
SslErrorType

The SSL error

certificate
X509Certificate

The associated SSL certificate

Attributes

Remarks

Creates a new SslError object using the supplied error and certificate. The URL will be set to the empty string.

This member is deprecated. Use #SslError(int, X509Certificate, String)

Java documentation for android.net.http.SslError.SslError(int, java.security.cert.X509Certificate).

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

SslError(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SslError (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.Http.SslError : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.Http.SslError

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

SslError(SslErrorType, SslCertificate, String)

Creates a new SslError object using the supplied error, certificate and URL.

[Android.Runtime.Register(".ctor", "(ILandroid/net/http/SslCertificate;Ljava/lang/String;)V", "")]
public SslError (Android.Net.Http.SslErrorType error, Android.Net.Http.SslCertificate? certificate, string? url);
[<Android.Runtime.Register(".ctor", "(ILandroid/net/http/SslCertificate;Ljava/lang/String;)V", "")>]
new Android.Net.Http.SslError : Android.Net.Http.SslErrorType * Android.Net.Http.SslCertificate * string -> Android.Net.Http.SslError

Parameters

error
SslErrorType

The SSL error

certificate
SslCertificate

The associated SSL certificate

url
String

The associated URL

Attributes

Remarks

Creates a new SslError object using the supplied error, certificate and URL.

Java documentation for android.net.http.SslError.SslError(int, android.net.http.SslCertificate, java.lang.String).

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

SslError(SslErrorType, X509Certificate, String)

Creates a new SslError object using the supplied error, certificate and URL.

[Android.Runtime.Register(".ctor", "(ILjava/security/cert/X509Certificate;Ljava/lang/String;)V", "")]
public SslError (Android.Net.Http.SslErrorType error, Java.Security.Cert.X509Certificate? certificate, string? url);
[<Android.Runtime.Register(".ctor", "(ILjava/security/cert/X509Certificate;Ljava/lang/String;)V", "")>]
new Android.Net.Http.SslError : Android.Net.Http.SslErrorType * Java.Security.Cert.X509Certificate * string -> Android.Net.Http.SslError

Parameters

error
SslErrorType

The SSL error

certificate
X509Certificate

The associated SSL certificate

url
String

The associated URL

Attributes

Remarks

Creates a new SslError object using the supplied error, certificate and URL.

Java documentation for android.net.http.SslError.SslError(int, java.security.cert.X509Certificate, java.lang.String).

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