AbstractVerifier.Verify Method
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
Verify(String, X509Certificate) | |
Verify(String, ISSLSession) |
Verifies that the specified hostname is allowed within the specified SSL session. |
Verify(String, SSLSocket) | |
Verify(String, String[], String[]) |
Checks to see if the supplied hostname matches any of the supplied CNs or "DNS" Subject-Alts. |
Verify(String, String[], String[], Boolean) |
Verify(String, X509Certificate)
[Android.Runtime.Register("verify", "(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V", "")]
public void Verify (string? host, Java.Security.Cert.X509Certificate? cert);
[<Android.Runtime.Register("verify", "(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V", "")>]
abstract member Verify : string * Java.Security.Cert.X509Certificate -> unit
override this.Verify : string * Java.Security.Cert.X509Certificate -> unit
Parameters
- host
- String
- cert
- X509Certificate
Implements
- Attributes
Exceptions
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
Verify(String, ISSLSession)
Verifies that the specified hostname is allowed within the specified SSL session.
[Android.Runtime.Register("verify", "(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z", "")]
public bool Verify (string? host, Javax.Net.Ssl.ISSLSession? session);
[<Android.Runtime.Register("verify", "(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z", "")>]
abstract member Verify : string * Javax.Net.Ssl.ISSLSession -> bool
override this.Verify : string * Javax.Net.Ssl.ISSLSession -> bool
Parameters
- host
- String
the hostname.
- session
- ISSLSession
the SSL session of the connection.
Returns
Implements
- Attributes
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
Verify(String, SSLSocket)
[Android.Runtime.Register("verify", "(Ljava/lang/String;Ljavax/net/ssl/SSLSocket;)V", "")]
public void Verify (string? host, Javax.Net.Ssl.SSLSocket? ssl);
[<Android.Runtime.Register("verify", "(Ljava/lang/String;Ljavax/net/ssl/SSLSocket;)V", "")>]
abstract member Verify : string * Javax.Net.Ssl.SSLSocket -> unit
override this.Verify : string * Javax.Net.Ssl.SSLSocket -> unit
Parameters
- host
- String
- ssl
- SSLSocket
Implements
- Attributes
Exceptions
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
Verify(String, String[], String[])
Checks to see if the supplied hostname matches any of the supplied CNs or "DNS" Subject-Alts.
[Android.Runtime.Register("verify", "(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)V", "GetVerify_Ljava_lang_String_arrayLjava_lang_String_arrayLjava_lang_String_Handler")]
public abstract void Verify (string? host, string[]? cns, string[]? subjectAlts);
[<Android.Runtime.Register("verify", "(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)V", "GetVerify_Ljava_lang_String_arrayLjava_lang_String_arrayLjava_lang_String_Handler")>]
abstract member Verify : string * string[] * string[] -> unit
Parameters
- host
- String
The hostname to verify.
- cns
- String[]
CN fields, in order, as extracted from the X.509 certificate.
- subjectAlts
- String[]
Subject-Alt fields of type 2 ("DNS"), as extracted from the X.509 certificate.
Implements
- Attributes
Remarks
Checks to see if the supplied hostname matches any of the supplied CNs or "DNS" Subject-Alts. Most implementations only look at the first CN, and ignore any additional CNs. Most implementations do look at all of the "DNS" Subject-Alts. The CNs or Subject-Alts may contain wildcards according to RFC 2818.
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
Verify(String, String[], String[], Boolean)
[Android.Runtime.Register("verify", "(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;Z)V", "")]
public void Verify (string? host, string[]? cns, string[]? subjectAlts, bool strictWithSubDomains);
[<Android.Runtime.Register("verify", "(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;Z)V", "")>]
member this.Verify : string * string[] * string[] * bool -> unit
Parameters
- host
- String
- cns
- String[]
- subjectAlts
- String[]
- strictWithSubDomains
- Boolean
- Attributes
Exceptions
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.