Class TunnelOptions
- java.lang.Object
-
- com.e1c.g5.v8.dt.platform.cloud.core.tunnel.TunnelOptions
-
public final class TunnelOptions extends Object
An options container class to configure tunnel open.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TunnelOptions.Builder
Builder class to buildTunnelOptions
.
-
Constructor Summary
Constructors Constructor Description TunnelOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TunnelOptions.Builder
builder()
Returns the new tunnel options builder.Optional<String>
getLocalHost()
Returns the local host to use.OptionalInt
getLocalPort()
Returns the local port to use.Optional<String>
getPassword()
Returns the user password to use.Optional<String>
getUsername()
Returns the user name to use.boolean
isVerifyTls()
Returns whether need to verify TLS certificates.
-
-
-
Method Detail
-
builder
public static TunnelOptions.Builder builder()
Returns the new tunnel options builder.- Returns:
- the new tunnel options builder, never
null
-
getUsername
public Optional<String> getUsername()
Returns the user name to use.- Returns:
- the user name to use
-
getPassword
public Optional<String> getPassword()
Returns the user password to use.- Returns:
- the user password to use
-
getLocalHost
public Optional<String> getLocalHost()
Returns the local host to use.- Returns:
- the local host to use
-
getLocalPort
public OptionalInt getLocalPort()
Returns the local port to use.- Returns:
- the local port to use
-
isVerifyTls
public boolean isVerifyTls()
Returns whether need to verify TLS certificates.- Returns:
- whether need to verify TLS certificates
-
-