public interface LoginService
| Modifier and Type | Method and Description |
|---|---|
UserSession |
getSession(byte[] sessionId)
Returns UserSession object for a session with a given identifier or
null |
byte[] |
getSystemSessionId()
Returns the identifier of the system session.
|
UserSession |
login(java.lang.String userName,
java.util.Dictionary credentials)
Authenticates the user and creates a session object which unique identifies the current session
of the user with the mPRM.
|
UserSession |
resumeSession(java.lang.String userName,
java.util.Dictionary credentials,
byte[] sessionId)
Authenticates the user and creates a session object with a supplied session identifier.
|
UserSession login(java.lang.String userName, java.util.Dictionary credentials) throws LoginException
userName - the user identifiercredentials - parameters used for verifying the authenticity of the user.
The content of the credentials dictionary depends of the used
authentication mechanism.LoginException - if the user does not exists or its credentials could not be verified.UserSession resumeSession(java.lang.String userName, java.util.Dictionary credentials, byte[] sessionId) throws LoginException
userName - the user identifiercredentials - parameters used for verifying the authenticity of the user.
The content of the credentials dictionary depends of the used
authentication mechanism.sessionId - the session id of previously established session.LoginException - if the user does not exists or its credentials could not be verified.UserSession getSession(byte[] sessionId)
null
if there is no such session.sessionId - the identifier of the sessionbyte[] getSystemSessionId()
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.