public final class SessionFactory extends Object
Use the newSession(URL, String, String)
method to begin a Session
. With that Session you are
connected to a server and have access to a number of services (retrieved via the ServiceManager
).
Use the newSessionWithProxy(URL, String, String, ProxyInfo)
method to begin a Session
. With that Session you are
connected to a server and have access to a number of services (retrieved via the ServiceManager
).
Modifier and Type | Field and Description |
---|---|
static String |
SESSION_STRATEGY_SYSTEM_PROPERTY
System property designating the session strategy instance to be used when creating and initializing Session
objects.
|
Modifier and Type | Method and Description |
---|---|
static Session |
newSession(URL url,
String userid,
String password)
Create an authenticated
Session object to allow interaction with the server. |
static Session |
newSessionWithProxy(URL url,
String userId,
String password,
ProxyInfo proxyInfo)
Create an authenticated
Session object to allow interaction with the server. |
public static final String SESSION_STRATEGY_SYSTEM_PROPERTY
SessionStrategy
for more information on this customization capabilitypublic static Session newSession(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 machine hosting the SAS Life Science Analytics Framework instanceuserid
- userid of the user who is creating the sessionpassword
- password of the user who is creating the sessionAuthenticationException
- if the credentials were incorrectpublic static Session newSessionWithProxy(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 machine hosting the SAS Life Science Analytics Framework instanceuserId
- user id of the user who is creating the sessionpassword
- password of the user who is creating the sessionproxyInfo
- proxy information required to access the urlAuthenticationException
- if the credentials were incorrectCopyright (c) 2017, SAS Institute Inc., Cary, NC, USA