Class TunnelOptions


  • public final class TunnelOptions
    extends Object
    An options container class to configure tunnel open.
    • Constructor Detail

      • TunnelOptions

        public TunnelOptions()
    • 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