Interface TrustOptions
- All Known Implementing Classes:
JksOptions, KeyStoreOptions, KeyStoreOptionsBase, PemTrustOptions, PfxOptions
-
Method Summary
Modifier and TypeMethodDescriptioncopy()getTrustManagerFactory(Vertx vertx) Create and return the trust manager factory for these options.trustManagerMapper(Vertx vertx) Returns a function that maps SNI server names to aTrustManagerFactoryinstance.static TrustOptionswrap(TrustManager trustManager) Returns aTrustOptionsfrom the providedTrustManagerstatic TrustOptionswrap(TrustManagerFactory trustManagerFactory) Returns aTrustOptionsfrom the providedTrustManagerFactory
-
Method Details
-
copy
TrustOptions copy()- Returns:
- a copy of these options
-
getTrustManagerFactory
Create and return the trust manager factory for these options.The returned trust manager factory should be already initialized and ready to use.
- Parameters:
vertx- the vertx instance- Returns:
- the trust manager factory
- Throws:
Exception
-
trustManagerMapper
Returns a function that maps SNI server names to aTrustManagerFactoryinstance. The returnedTrustManagerFactorymust 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 returnnullin which casegetTrustManagerFactory(Vertx)is used as fallback.- Parameters:
vertx- the vertx instance- Returns:
- the trustManager
- Throws:
Exception
-
wrap
Returns aTrustOptionsfrom the providedTrustManager- Parameters:
trustManager- the trustManager instance- Returns:
- the
TrustOptions
-
wrap
Returns aTrustOptionsfrom the providedTrustManagerFactory- Parameters:
trustManagerFactory- the trustManagerFactory instance- Returns:
- the
TrustOptions
-