Skip to content

Commit

Permalink
4700 Provide a default implementation for KeyCertOptions.keyManagerMa…
Browse files Browse the repository at this point in the history
…pper

This way there is no need to implement this method anymore and KeyCertOptions implementations will not get a compilation warning.

Signed-off-by: Nils Renaud <[email protected]>
  • Loading branch information
NilsRenaud authored and vietj committed May 15, 2023
1 parent 9c29221 commit 8375fd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/vertx/core/net/KeyCertOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public interface KeyCertOptions {
* @deprecated instead use {@link #keyManagerFactoryMapper(Vertx)}
*/
@Deprecated
Function<String, X509KeyManager> keyManagerMapper(Vertx vertx) throws Exception;
default Function<String, X509KeyManager> keyManagerMapper(Vertx vertx) throws Exception {
return name -> null;
}

/**
* Returns a function that maps SNI server names to {@link KeyManagerFactory} instance.
Expand Down

0 comments on commit 8375fd3

Please sign in to comment.