|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.server.SessionManagerAdapter
public class SessionManagerAdapter
Adapter class for SessionManagerListener
| Constructor Summary | |
|---|---|
SessionManagerAdapter()
|
|
| Method Summary | |
|---|---|
boolean |
onActivateSession(Session session,
ServerUserIdentity userIdentity)
Notification of session activation. |
void |
onActivateSessionError(Session session,
org.opcfoundation.ua.core.UserIdentityToken userToken,
Exception e)
Notification of an activation error. |
void |
onAfterActivateSession(Session session)
Notification of a successful session activation. |
void |
onCancelSession(Session session)
Notification of session cancel. |
void |
onCloseSession(Session session,
boolean deleteSubscriptions)
Notification of session close. |
void |
onCreateSession(Session session)
Notification of session creation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionManagerAdapter()
| Method Detail |
|---|
public boolean onActivateSession(Session session,
ServerUserIdentity userIdentity)
throws StatusException
SessionManagerListener
Note that raising an exception will also lead to a call to SessionManagerListener.onActivateSessionError(com.prosysopc.ua.server.Session, org.opcfoundation.ua.core.UserIdentityToken, java.lang.Exception)
The UaServer listens to the event as well, and delegates the certificate check to its
userValidator.
onActivateSession in interface SessionManagerListenersession - The session which the user is logging in. The old user identity is still
assigned to the session (it will be null in the first time).userIdentity - the new user identity that is being used to activate the session.
StatusException - if there is a problem with the activation. For example, if the session
is active, and you do not want to enable the user identity to be changed, throw the
exception with StatusCodes.Bad_IdentityChangeNotSupported.
public void onActivateSessionError(Session session,
org.opcfoundation.ua.core.UserIdentityToken userToken,
Exception e)
SessionManagerListener
onActivateSessionError in interface SessionManagerListenersession - The session which the user was logging in.userToken - The user token that was usede - The error that was raised.public void onAfterActivateSession(Session session)
SessionManagerListener
onAfterActivateSession in interface SessionManagerListenersession - The session which the user logged in. You can read the new UserIdentity from the
session.public void onCancelSession(Session session)
SessionManagerListener
onCancelSession in interface SessionManagerListenersession - the session being canceled.
public void onCloseSession(Session session,
boolean deleteSubscriptions)
SessionManagerListener
onCloseSession in interface SessionManagerListenersession - the session being closed.deleteSubscriptions - whether the client is requesting that all subscriptions related to
the session are to be deleted as well.
public void onCreateSession(Session session)
throws StatusException
SessionManagerListener
The UaServer listens to the event as well, and delegates the certificate check to its
certificateValidator.
onCreateSession in interface SessionManagerListenersession - the session to be created.
StatusException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||