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 theEndpointTlsTerminationinstance.enabled(boolean enabled) trueif the module will be applied to traffic,falseto disable.trueif the module will be applied to traffic,falseto 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) edgeif the ngrok edge should terminate TLS traffic,upstreamif TLS traffic should be passed through to the upstream ngrok agent / application server for termination.terminateAt(Optional<String> terminateAt) edgeif the ngrok edge should terminate TLS traffic,upstreamif TLS traffic should be passed through to the upstream ngrok agent / application server for termination.
-
Method Details
-
enabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Parameters:
enabled- the value of theenabledparameter as aboolean- Returns:
- this builder instance
-
enabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Parameters:
enabled- the value of theenabledparameter as aboolean, wrapped in anOptional- Returns:
- this builder instance
-
terminateAt
edgeif the ngrok edge should terminate TLS traffic,upstreamif TLS traffic should be passed through to the upstream ngrok agent / application server for termination. ifupstreamis 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_atparameter as aString- Returns:
- this builder instance
-
terminateAt
edgeif the ngrok edge should terminate TLS traffic,upstreamif TLS traffic should be passed through to the upstream ngrok agent / application server for termination. ifupstreamis 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_atis set toupstream.- Parameters:
minVersion- the value of themin_versionparameter 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_atis set toupstream. -
build
Constructs theEndpointTlsTerminationinstance.- Returns:
- a new
EndpointTlsTermination
-