public final class SessionFactory extends Object
Use the logon(URL, String, byte[])
method to begin a ClientSession
. With that ClientSession 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 ClientSession
when a proxy server
is used to access the target server. With that ClientSession 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 ClientSession
objects.
|
Modifier and Type | Method and Description |
---|---|
static ClientSession |
logon(URL url,
String userid,
byte[] password)
Create an authenticated
ClientSession to allow interaction with the server. |
static ClientSession |
logon(URL url,
String userId,
byte[] password,
ProxyInfo proxyInfo)
Create an authenticated
ClientSession to allow interaction with the server. |
public static final String SESSION_STRATEGY_SYSTEM_PROPERTY
SessionStrategy
for more information on this customization capabilitypublic static ClientSession logon(URL url, String userid, byte[] password) throws AuthenticationException
ClientSession
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 ClientSession logon(URL url, String userId, byte[] password, ProxyInfo proxyInfo) throws AuthenticationException
ClientSession
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 incorrect<i>Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA</i>