public interface SimpleSessionClient extends SimpleClientConfigurator, java.nio.channels.Channel
DEFAULT_AUTHENTICATION_TIMEOUT, DEFAULT_CONNECT_TIMEOUT, DEFAULT_PORT
Modifier and Type | Method and Description |
---|---|
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,
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,
java.lang.String username,
java.security.KeyPair identity)
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.lang.String password)
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.security.KeyPair identity)
Creates a session 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
|
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
|
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,
java.lang.String username,
java.security.KeyPair identity)
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.lang.String password)
Creates a session on the default port and logs in using the provided credentials
|
getAuthenticationTimeout, getConnectTimeout, setAuthenticationTimeout, setConnectTimeout
default ClientSession sessionLogin(java.lang.String host, java.lang.String username, java.lang.String password) throws java.io.IOException
host
- The target host name or addressusername
- Usernamepassword
- PasswordClientSession
java.io.IOException
- If failed to login or authenticatedefault ClientSession sessionLogin(java.lang.String host, int port, java.lang.String username, java.lang.String password) throws java.io.IOException
host
- The target host name or addressport
- The target portusername
- Usernamepassword
- PasswordClientSession
java.io.IOException
- If failed to login or authenticatedefault ClientSession sessionLogin(java.lang.String host, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
host
- The target host name or addressusername
- Usernameidentity
- The KeyPair
identityClientSession
java.io.IOException
- If failed to login or authenticatedefault ClientSession sessionLogin(java.lang.String host, int port, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
host
- The target host name or addressport
- The target portusername
- Usernameidentity
- The KeyPair
identityClientSession
java.io.IOException
- If failed to login or authenticatedefault ClientSession sessionLogin(java.net.InetAddress host, java.lang.String username, java.lang.String password) throws java.io.IOException
host
- The target host InetAddress
username
- Usernamepassword
- PasswordClientSession
java.io.IOException
- If failed to login or authenticatedefault ClientSession sessionLogin(java.net.InetAddress host, int port, java.lang.String username, java.lang.String password) throws java.io.IOException
host
- The target host InetAddress
port
- The target portusername
- Usernamepassword
- PasswordClientSession
java.io.IOException
- If failed to login or authenticatedefault ClientSession sessionLogin(java.net.InetAddress host, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
host
- The target host InetAddress
username
- Usernameidentity
- The KeyPair
identityClientSession
java.io.IOException
- If failed to login or authenticatedefault ClientSession sessionLogin(java.net.InetAddress host, int port, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
host
- The target host InetAddress
port
- The target portusername
- Usernameidentity
- The KeyPair
identityClientSession
java.io.IOException
- If failed to login or authenticateClientSession sessionLogin(java.net.SocketAddress target, java.lang.String username, java.lang.String password) throws java.io.IOException
target
- The target SocketAddress
username
- Usernamepassword
- PasswordClientSession
java.io.IOException
- If failed to login or authenticateClientSession sessionLogin(java.net.SocketAddress target, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
target
- The target SocketAddress
username
- Usernameidentity
- The KeyPair
identityClientSession
java.io.IOException
- If failed to login or authenticate