Interface SimpleSessionClient

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default ClientSession sessionLogin​(java.lang.String host, int port, java.lang.String username, java.lang.String password)
      Creates a session and logs in using the provided credentials
      default ClientSession sessionLogin​(java.lang.String host, int port, java.lang.String username, java.security.KeyPair identity)
      Creates a session and logs in using the provided credentials
      ClientSession sessionLogin​(java.lang.String uri, java.lang.String password)
      Creates a session and logs in using the provided credentials
      default ClientSession sessionLogin​(java.lang.String host, java.lang.String username, java.lang.String password)
      Creates a session on the default port and logs in using the provided credentials
      default ClientSession sessionLogin​(java.lang.String host, java.lang.String username, java.security.KeyPair identity)
      Creates a session on the default port and logs in using the provided credentials
      ClientSession sessionLogin​(java.lang.String uri, java.security.KeyPair identity)
      Creates a session and logs in using the provided credentials
      default ClientSession sessionLogin​(java.net.InetAddress host, int port, java.lang.String username, java.lang.String password)
      Creates a session and logs in using the provided credentials
      default ClientSession sessionLogin​(java.net.InetAddress host, int port, java.lang.String username, java.security.KeyPair identity)
      Creates a session and logs in using the provided credentials
      default ClientSession sessionLogin​(java.net.InetAddress host, java.lang.String username, java.lang.String password)
      Creates a session on the default port and logs in using the provided credentials
      default ClientSession sessionLogin​(java.net.InetAddress host, java.lang.String username, java.security.KeyPair identity)
      Creates a session on the default port and logs in using the provided credentials
      ClientSession sessionLogin​(java.net.SocketAddress target, java.lang.String username, java.lang.String password)
      Creates a session and logs in using the provided credentials
      ClientSession sessionLogin​(java.net.SocketAddress target, java.lang.String username, java.security.KeyPair identity)
      Creates a session and logs in using the provided credentials
      • Methods inherited from interface java.nio.channels.Channel

        close, isOpen
    • Method Detail

      • sessionLogin

        default ClientSession sessionLogin​(java.lang.String host,
                                           java.lang.String username,
                                           java.lang.String password)
                                    throws java.io.IOException
        Creates a session on the default port and logs in using the provided credentials
        Parameters:
        host - The target host name or address
        username - Username
        password - Password
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        default ClientSession sessionLogin​(java.lang.String host,
                                           int port,
                                           java.lang.String username,
                                           java.lang.String password)
                                    throws java.io.IOException
        Creates a session and logs in using the provided credentials
        Parameters:
        host - The target host name or address
        port - The target port
        username - Username
        password - Password
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        default ClientSession sessionLogin​(java.lang.String host,
                                           java.lang.String username,
                                           java.security.KeyPair identity)
                                    throws java.io.IOException
        Creates a session on the default port and logs in using the provided credentials
        Parameters:
        host - The target host name or address
        username - Username
        identity - The KeyPair identity
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        default ClientSession sessionLogin​(java.lang.String host,
                                           int port,
                                           java.lang.String username,
                                           java.security.KeyPair identity)
                                    throws java.io.IOException
        Creates a session and logs in using the provided credentials
        Parameters:
        host - The target host name or address
        port - The target port
        username - Username
        identity - The KeyPair identity
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        default ClientSession sessionLogin​(java.net.InetAddress host,
                                           java.lang.String username,
                                           java.lang.String password)
                                    throws java.io.IOException
        Creates a session on the default port and logs in using the provided credentials
        Parameters:
        host - The target host InetAddress
        username - Username
        password - Password
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        default ClientSession sessionLogin​(java.net.InetAddress host,
                                           int port,
                                           java.lang.String username,
                                           java.lang.String password)
                                    throws java.io.IOException
        Creates a session and logs in using the provided credentials
        Parameters:
        host - The target host InetAddress
        port - The target port
        username - Username
        password - Password
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        default ClientSession sessionLogin​(java.net.InetAddress host,
                                           java.lang.String username,
                                           java.security.KeyPair identity)
                                    throws java.io.IOException
        Creates a session on the default port and logs in using the provided credentials
        Parameters:
        host - The target host InetAddress
        username - Username
        identity - The KeyPair identity
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        default ClientSession sessionLogin​(java.net.InetAddress host,
                                           int port,
                                           java.lang.String username,
                                           java.security.KeyPair identity)
                                    throws java.io.IOException
        Creates a session and logs in using the provided credentials
        Parameters:
        host - The target host InetAddress
        port - The target port
        username - Username
        identity - The KeyPair identity
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        ClientSession sessionLogin​(java.net.SocketAddress target,
                                   java.lang.String username,
                                   java.lang.String password)
                            throws java.io.IOException
        Creates a session and logs in using the provided credentials
        Parameters:
        target - The target SocketAddress
        username - Username
        password - Password
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        ClientSession sessionLogin​(java.net.SocketAddress target,
                                   java.lang.String username,
                                   java.security.KeyPair identity)
                            throws java.io.IOException
        Creates a session and logs in using the provided credentials
        Parameters:
        target - The target SocketAddress
        username - Username
        identity - The KeyPair identity
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        ClientSession sessionLogin​(java.lang.String uri,
                                   java.lang.String password)
                            throws java.io.IOException
        Creates a session and logs in using the provided credentials
        Parameters:
        uri - The target uri
        password - Password
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate
      • sessionLogin

        ClientSession sessionLogin​(java.lang.String uri,
                                   java.security.KeyPair identity)
                            throws java.io.IOException
        Creates a session and logs in using the provided credentials
        Parameters:
        uri - The target uri
        identity - The KeyPair identity
        Returns:
        Created ClientSession
        Throws:
        java.io.IOException - If failed to login or authenticate