Top Description Methods
io.vertx.core.net

public Interface TrustOptions

Known Direct Implementers
io.vertx.core.net.KeyStoreOptionsBase, io.vertx.core.net.PemTrustOptions, io.vertx.core.net.TrustManagerFactoryOptions
Imports
io.vertx.core.Vertx, javax.net.ssl.TrustManager, .TrustManagerFactory, java.util.function.Function

Certification authority configuration options.
Author
Julien Viet

Method Summary

Modifier and TypeMethod and Description
public TrustOptions

Returns:

a copy of these options
copy
()

public TrustManagerFactory

Returns:

the trust manager factory
getTrustManagerFactory
(Vertx
the vertx instance
vertx
)

Create and return the trust manager factory for these options.

public Function<String, TrustManager[]>

Returns:

the trustManager
trustManagerMapper
(Vertx
the vertx instance
vertx
)

Returns a function that maps SNI server names to a TrustManagerFactory instance.

public static TrustOptions

Returns:

the TrustOptions
wrap
(TrustManager
the trustManager instance
trustManager
)

Returns a TrustOptions from the provided TrustManager

public static TrustOptions

Returns:

the TrustOptions
wrap
(TrustManagerFactory
the trustManagerFactory instance
trustManagerFactory
)

Returns a TrustOptions from the provided TrustManagerFactory

Method Detail

copyback to summary
public TrustOptions copy()
Returns:TrustOptions

a copy of these options

getTrustManagerFactoryback to summary
public TrustManagerFactory getTrustManagerFactory(Vertx vertx) throws Exception

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:Vertx

the vertx instance

Returns:TrustManagerFactory

the trust manager factory

trustManagerMapperback to summary
public Function<String, TrustManager[]> trustManagerMapper(Vertx vertx) throws Exception

Returns a function that maps SNI server names to a 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.

Parameters
vertx:Vertx

the vertx instance

Returns:Function<String, TrustManager[]>

the trustManager

wrapback to summary
public static TrustOptions wrap(TrustManager trustManager)

Returns a TrustOptions from the provided TrustManager

Parameters
trustManager:TrustManager

the trustManager instance

Returns:TrustOptions

the TrustOptions

wrapback to summary
public static TrustOptions wrap(TrustManagerFactory trustManagerFactory)

Returns a TrustOptions from the provided TrustManagerFactory

Parameters
trustManagerFactory:TrustManagerFactory

the trustManagerFactory instance

Returns:TrustOptions

the TrustOptions