public final class FenixHostnameVerifier extends Object implements HostnameVerifier
HostnameVerifierUtils which provides the same functionality
while it has a stable API because it is part of the public API.
This verifier does not accept addresses in the subjectDN:commonName attribute
and it will not verify names or wildcards against the Public Suffix List.
Therefore use of wildcards is not limited to subdomains.
This HostnameVerifier is copied from OkHttp library, see here for the original content:
- https://github.com/square/okhttp/blob/69ae7f3e10dae0554f3181edaa52bcd77ee448ab/okhttp/src/jvmMain/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt#L1| Modifier and Type | Method and Description |
|---|---|
static HostnameVerifier |
getInstance() |
boolean |
verify(String host,
SSLSession sslSession) |
public static HostnameVerifier getInstance()
public boolean verify(String host, SSLSession sslSession)
verify in interface HostnameVerifierCopyright © 2023. All rights reserved.