Class TunnelOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Creates a new instance of builder.
    • Method Detail

      • user

        public TunnelOptions.Builder user​(String username,
                                          String password)
        Sets the user name and password to use.
        Parameters:
        username - the username to set, cannot be null
        password - the password to set, cannot be null
        Returns:
        a reference to the same tunnel options builder inatnace, never null
      • localInterface

        public TunnelOptions.Builder localInterface​(String localInterface)
        Sets the local intefrace name to tunnel in. By default tunnels in all local interfaces.
        Parameters:
        localInterface - the local interface to set, cannot be null
        Returns:
        a reference to the same tunnel options builder inatnace, never null
      • localPort

        public TunnelOptions.Builder localPort​(int localPort)
        Sets the local host port to tunnel in. By default tunnels in the same port as remote.
        Parameters:
        localPort - the local port to set
        Returns:
        a reference to the same tunnel options builder inatnace, never null
      • verifyTls

        public TunnelOptions.Builder verifyTls​(boolean verifyTls)
        Sets whether need to verify TLS certificates.
        Parameters:
        verifyTls - whether need to verify TLS certificates
        Returns:
        a reference to the same tunnel options builder inatnace, never null