Skip to content

Commit

Permalink
Added default hostname verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakky54 committed Jul 14, 2023
1 parent 0d61dc4 commit 8bff410
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ public static HostnameVerifier createUnsafe() {
/**
* Creates a fenix hostname verifier which validates the hostname against the SAN field of the peer certificate.
*/
@Deprecated
public static HostnameVerifier createFenix() {
return createDefault();
}

/**
* Creates the default hostname verifier which is able to validate the hostname against the SAN field of the peer certificate.
*/
public static HostnameVerifier createDefault() {
return FenixHostnameVerifier.getInstance();
}

Expand Down

0 comments on commit 8bff410

Please sign in to comment.