Package com.ngrok.definitions
Class EndpointTlsTermination.Builder
java.lang.Object
com.ngrok.definitions.EndpointTlsTermination.Builder
- Enclosing class:
- EndpointTlsTermination
Builder class for
EndpointTlsTermination
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs theEndpointTlsTermination
instance.enabled
(boolean enabled) true
if the module will be applied to traffic,false
to disable.true
if the module will be applied to traffic,false
to disable.minVersion
(String minVersion) The minimum TLS version used for termination and advertised to the client during the TLS handshake.minVersion
(Optional<String> minVersion) The minimum TLS version used for termination and advertised to the client during the TLS handshake.terminateAt
(String terminateAt) edge
if the ngrok edge should terminate TLS traffic,upstream
if TLS traffic should be passed through to the upstream ngrok agent / application server for termination.terminateAt
(Optional<String> terminateAt) edge
if the ngrok edge should terminate TLS traffic,upstream
if TLS traffic should be passed through to the upstream ngrok agent / application server for termination.
-
Method Details
-
enabled
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Parameters:
enabled
- the value of theenabled
parameter as aboolean
- Returns:
- this builder instance
-
enabled
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Parameters:
enabled
- the value of theenabled
parameter as aboolean
, wrapped in anOptional
- Returns:
- this builder instance
-
terminateAt
edge
if the ngrok edge should terminate TLS traffic,upstream
if TLS traffic should be passed through to the upstream ngrok agent / application server for termination. ifupstream
is chosen, most other modules will be disallowed because they rely on the ngrok edge being able to access the underlying traffic.- Parameters:
terminateAt
- the value of theterminate_at
parameter as aString
- Returns:
- this builder instance
-
terminateAt
edge
if the ngrok edge should terminate TLS traffic,upstream
if TLS traffic should be passed through to the upstream ngrok agent / application server for termination. ifupstream
is chosen, most other modules will be disallowed because they rely on the ngrok edge being able to access the underlying traffic. -
minVersion
The minimum TLS version used for termination and advertised to the client during the TLS handshake. if unspecified, ngrok will choose an industry-safe default. This value must be null ifterminate_at
is set toupstream
.- Parameters:
minVersion
- the value of themin_version
parameter as aString
- Returns:
- this builder instance
-
minVersion
The minimum TLS version used for termination and advertised to the client during the TLS handshake. if unspecified, ngrok will choose an industry-safe default. This value must be null ifterminate_at
is set toupstream
. -
build
Constructs theEndpointTlsTermination
instance.- Returns:
- a new
EndpointTlsTermination
-