public interface KeyCertOptions
Modifier and Type | Method and Description |
---|---|
KeyCertOptions |
copy() |
KeyManagerFactory |
getKeyManagerFactory(Vertx vertx)
Create and return the key manager factory for these options.
|
default java.util.function.Function<String,KeyManagerFactory> |
keyManagerFactoryMapper(Vertx vertx)
Returns a function that maps SNI server names to
KeyManagerFactory instance. |
default java.util.function.Function<String,X509KeyManager> |
keyManagerMapper(Vertx vertx)
Deprecated.
instead use
keyManagerFactoryMapper(Vertx) |
static KeyCertOptions |
wrap(KeyManagerFactory keyManagerFactory)
Returns a
KeyCertOptions from the provided KeyManagerFactory |
static KeyCertOptions |
wrap(X509KeyManager keyManager)
Returns a
KeyCertOptions from the provided X509KeyManager |
KeyCertOptions copy()
KeyManagerFactory getKeyManagerFactory(Vertx vertx) throws Exception
The returned key manager factory should be already initialized and ready to use.
vertx
- the vertx instanceException
@Deprecated default java.util.function.Function<String,X509KeyManager> keyManagerMapper(Vertx vertx) throws Exception
keyManagerFactoryMapper(Vertx)
X509KeyManager
instance.
The returned X509KeyManager
must satisfies these rules:
X509KeyManager.getPrivateKey(String)
returns the private key for the indicated server name,
the alias
parameter will be null
.X509KeyManager.getCertificateChain(String)
returns the certificate chain for the indicated server name,
the alias
parameter will be null
.
The returned function may return null
in which case the default key manager provided by getKeyManagerFactory(Vertx)
will be used.
Exception
default java.util.function.Function<String,KeyManagerFactory> keyManagerFactoryMapper(Vertx vertx) throws Exception
KeyManagerFactory
instance.
The returned KeyManagerFactory
must satisfies these rules:
The returned function may return null
in which case the default key manager provided by getKeyManagerFactory(Vertx)
will be used.
Exception
static KeyCertOptions wrap(X509KeyManager keyManager)
KeyCertOptions
from the provided X509KeyManager
keyManager
- the keyManager instanceKeyCertOptions
static KeyCertOptions wrap(KeyManagerFactory keyManagerFactory)
KeyCertOptions
from the provided KeyManagerFactory
keyManagerFactory
- the keyManagerFactory instanceKeyCertOptions
Copyright © 2024 Eclipse. All rights reserved.