com.sas.hls.client
Interface SessionStrategy
public interface SessionStrategy
Strategy interface which allows consumers the ability to create Session
instances. It is not expected that
most consumers will provide alternate SessionStrategy implementations, but if required, this allows customization of
Session
lifecycles.
openSession
Session openSession(URL url,
String userid,
String password)
throws AuthenticationException
- Create a new authenticated session using the specified server URL.
- Parameters:
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 session
- Returns:
- a fully initialized session object
- Throws:
AuthenticationException
- if the credentials were incorrect
Copyright (c) 2013, SAS Institute Inc., Cary, NC, USA