public class SaWsAuthenticationService extends AbstractService
configured
Constructor and Description |
---|
SaWsAuthenticationService()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlive(int token)
Determines if the session identified by the given token is alive.
|
int |
login(String username,
String password,
int type,
String mandant,
String applicationToken)
Login to the backend system.
|
boolean |
logoff(int token)
Logoff from the backend system.
|
int |
logon(String username,
String password,
SaWsLicenseType type,
String mandant,
String applicationToken)
Logon to the backend system.
|
addToRequest, getConnection, getSession, isConfigured
public boolean logoff(int token) throws SaWsException
token
- to identify the session.SaWsException
- if an error occurs.SaClassicConnector.logoff()
public int logon(String username, String password, SaWsLicenseType type, String mandant, String applicationToken) throws SaWsException
username
- Usernamepassword
- Passwordtype
- User typemandant
- client nameSaWsException
- if an error occurs.SaClassicConnector.logon(java.lang.String, java.lang.String, int,
java.lang.String)
public int login(String username, String password, int type, String mandant, String applicationToken) throws SaWsException
username
- Usernamepassword
- Passwordtype
- User typemandant
- client nameSaWsException
- if an error occurs.SaClassicConnector.logon(java.lang.String, java.lang.String, int,
java.lang.String)
public boolean isAlive(int token) throws SaWsAuthenticationException, SaWsRepositoryException
token
- The token which identifies the session.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.