public interface SessionStrategy
Session
instances. It is not expected that
most consumers will provide alternate SessionStrategy implementations, but if required, this allows customization of
Session
lifecycles. Modifier and Type | Method and Description |
---|---|
Session |
openSession(URL url,
String userid,
String password)
Create an authenticated
Session object to allow interaction with the server. |
Session |
openSessionWithProxy(URL url,
String userid,
String password,
ProxyInfo proxyInfo)
Create an authenticated
Session object to allow interaction with the server. |
Session openSession(URL url, String userid, String password) throws AuthenticationException
Session
object to allow interaction with the server. This method uses the
specified server URL and credentials when establishing the connection.
UserService.encryptPassword(String)
. Only the API supports encrypted passwords.
The encrypted password should not be used to log in to the system interactively.url
- url of the server hosting the application instanceuserid
- userid of the user who is creating the sessionpassword
- password of the user who is creating the sessionAuthenticationException
- if the credentials were incorrectSession openSessionWithProxy(URL url, String userid, String password, ProxyInfo proxyInfo) throws AuthenticationException
Session
object to allow interaction with the server. This method uses the
specified server URL, credentials and proxy server information when establishing the connection. This method
should only be used when a proxy server is required to access the specified server URL.
UserService.encryptPassword(String)
. Only the API supports encrypted passwords.
The encrypted password should not be used to log in to the system interactively.url
- url of the server hosting the application instanceuserid
- userid of the user who is creating the sessionpassword
- password of the user who is creating the sessionAuthenticationException
- if the credentials were incorrectCopyright (c) 2017, SAS Institute Inc., Cary, NC, USA