public final class SessionFactory extends Object
Use the logon(URL, String, byte[])
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 logon(URL, String, byte[], ProxyInfo)
method to begin a Session
when a proxy server
is used to access the target server. 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 |
logon(URL url,
String userid,
byte[] password)
Create an authenticated
Session to allow interaction with the server. |
static Session |
logon(URL url,
String userId,
byte[] password,
ProxyInfo proxyInfo)
Create an authenticated
Session to allow interaction with the server. |
public static final String SESSION_STRATEGY_SYSTEM_PROPERTY
SessionStrategy
for more information on this customization capabilitypublic static Session logon(URL url, String userid, byte[] password) throws AuthenticationException
Session
to allow interaction with the server. This method uses the specified
server URL and credentials when establishing the connection. UserService.encryptPassword(byte[])
. 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 logon(URL url, String userId, byte[] password, ProxyInfo proxyInfo) throws AuthenticationException
Session
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(byte[])
. 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) 2019, SAS Institute Inc., Cary, NC, USA