Interface SniConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
SniConfig.BuilderBase.SniConfigImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forSniConfig.static classSniConfig.BuilderBase<BUILDER extends SniConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SniConfig>Fluent API builder base forSniConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic SniConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static SniConfig.BuilderCreate a new fluent API builder from an existing instance.static SniConfigcreate()Create a new instance with default values.static SniConfigCreate a new instance from configuration.host()Explicit TLS peer host used whenmodeisexplicit.mode()TLS peer host source mode for SNI and endpoint identification:uri-host,host-header,explicit, ordisabled.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
-
create
-
mode
SniMode mode()TLS peer host source mode for SNI and endpoint identification:uri-host,host-header,explicit, ordisabled.DNS names are sent as SNI server names. IP literals are used for endpoint identification without a DNS SNI server name.
disabledclears the SNI server name without disabling endpoint identification.- Returns:
- SNI mode
-
host
Explicit TLS peer host used whenmodeisexplicit. DNS hosts are sent as SNI server names and used for endpoint identification. IP literals are used for endpoint identification without a DNS SNI server name.The host must be configured only when
modeisexplicit, and it must not include a port. Bracketed IPv6 literals are accepted and normalized to the host value without brackets.- Returns:
- explicit TLS peer host
-