Interface KeyCertOptions

    • Method Detail

      • getKeyManagerFactory

        KeyManagerFactory getKeyManagerFactory​(Vertx vertx)
                                        throws Exception
        Create and return the key manager factory for these options.

        The returned key manager factory should be already initialized and ready to use.

        Parameters:
        vertx - the vertx instance
        Returns:
        the key manager factory
        Throws:
        Exception
      • keyManagerFactoryMapper

        java.util.function.Function<String,​KeyManagerFactory> keyManagerFactoryMapper​(Vertx vertx)
                                                                                     throws Exception
        Returns a function that maps SNI server names to KeyManagerFactory instance. The returned KeyManagerFactory must satisfies these rules:
        • The store private key must match the indicated server name for a null alias.
        • The store certificate chain must match the indicated server name for a null alias.
        The mapper is only used when the server has SNI enabled and the client indicated a server name.

        The returned function may return null in which case the default key manager provided by getKeyManagerFactory(Vertx) will be used.

        Throws:
        Exception