public interface TrustOptions
Modifier and Type | Method and Description |
---|---|
TrustOptions |
copy() |
TrustManagerFactory |
getTrustManagerFactory(Vertx vertx)
Create and return the trust manager factory for these options.
|
java.util.function.Function<String,TrustManager[]> |
trustManagerMapper(Vertx vertx)
Returns a function that maps SNI server names to a
TrustManagerFactory instance. |
static TrustOptions |
wrap(TrustManager trustManager)
Returns a
TrustOptions from the provided TrustManager |
static TrustOptions |
wrap(TrustManagerFactory trustManagerFactory)
Returns a
TrustOptions from the provided TrustManagerFactory |
TrustOptions copy()
TrustManagerFactory getTrustManagerFactory(Vertx vertx) throws Exception
The returned trust manager factory should be already initialized and ready to use.
vertx
- the vertx instanceException
java.util.function.Function<String,TrustManager[]> trustManagerMapper(Vertx vertx) throws Exception
TrustManagerFactory
instance.
The returned TrustManagerFactory
must already be initialized and ready to use.
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 getTrustManagerFactory(Vertx)
is used as fallback.vertx
- the vertx instanceException
static TrustOptions wrap(TrustManager trustManager)
TrustOptions
from the provided TrustManager
trustManager
- the trustManager instanceTrustOptions
static TrustOptions wrap(TrustManagerFactory trustManagerFactory)
TrustOptions
from the provided TrustManagerFactory
trustManagerFactory
- the trustManagerFactory instanceTrustOptions
Copyright © 2024 Eclipse. All rights reserved.