Condividi tramite


SslCertificate Constructors

Definition

Overloads

SslCertificate(X509Certificate)

Creates a new SSL certificate object from an X509 certificate

SslCertificate(IntPtr, JniHandleOwnership)

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

SslCertificate(String, String, Date, Date)
Obsolete.

Creates a new SSL certificate object

SslCertificate(String, String, String, String)
Obsolete.

Creates a new SSL certificate object

SslCertificate(X509Certificate)

Creates a new SSL certificate object from an X509 certificate

[Android.Runtime.Register(".ctor", "(Ljava/security/cert/X509Certificate;)V", "")]
public SslCertificate (Java.Security.Cert.X509Certificate? certificate);
[<Android.Runtime.Register(".ctor", "(Ljava/security/cert/X509Certificate;)V", "")>]
new Android.Net.Http.SslCertificate : Java.Security.Cert.X509Certificate -> Android.Net.Http.SslCertificate

Parameters

certificate
X509Certificate

X509 certificate

Attributes

Remarks

Creates a new SSL certificate object from an X509 certificate

Java documentation for android.net.http.SslCertificate.SslCertificate(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

SslCertificate(IntPtr, JniHandleOwnership)

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

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

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

SslCertificate(String, String, Date, Date)

Caution

deprecated

Creates a new SSL certificate object

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V", "")]
[System.Obsolete("deprecated")]
public SslCertificate (string? issuedTo, string? issuedBy, Java.Util.Date? validNotBefore, Java.Util.Date? validNotAfter);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Net.Http.SslCertificate : string * string * Java.Util.Date * Java.Util.Date -> Android.Net.Http.SslCertificate

Parameters

issuedTo
String

The entity this certificate is issued to

issuedBy
String

The entity that issued this certificate

validNotBefore
Date

The not-before date from the certificate validity period

validNotAfter
Date

The not-after date from the certificate validity period

Attributes

Remarks

Creates a new SSL certificate object

This member is deprecated. Use #SslCertificate(X509Certificate)

Java documentation for android.net.http.SslCertificate.SslCertificate(java.lang.String, java.lang.String, java.util.Date, java.util.Date).

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

SslCertificate(String, String, String, String)

Caution

deprecated

Creates a new SSL certificate object

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")]
[System.Obsolete("deprecated")]
public SslCertificate (string? issuedTo, string? issuedBy, string? validNotBefore, string? validNotAfter);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Net.Http.SslCertificate : string * string * string * string -> Android.Net.Http.SslCertificate

Parameters

issuedTo
String

The entity this certificate is issued to

issuedBy
String

The entity that issued this certificate

validNotBefore
String

The not-before date from the certificate validity period in ISO 8601 format

validNotAfter
String

The not-after date from the certificate validity period in ISO 8601 format

Attributes

Remarks

Creates a new SSL certificate object

This member is deprecated. Use #SslCertificate(X509Certificate)

Java documentation for android.net.http.SslCertificate.SslCertificate(java.lang.String, java.lang.String, java.lang.String, 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