|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionManagerListener
| 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. |
| Method Detail |
|---|
boolean onActivateSession(Session session,
ServerUserIdentity userIdentity)
throws StatusException
Note that raising an exception will also lead to a call to 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.
session - 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.
void onActivateSessionError(Session session,
org.opcfoundation.ua.core.UserIdentityToken userToken,
Exception e)
session - The session which the user was logging in.userToken - The user token that was usede - The error that was raised.void onAfterActivateSession(Session session)
session - The session which the user logged in. You can read the new UserIdentity from the
session.void onCancelSession(Session session)
session - the session being canceled.
void onCloseSession(Session session,
boolean deleteSubscriptions)
session - the session being closed.deleteSubscriptions - whether the client is requesting that all subscriptions related to
the session are to be deleted as well.
void onCreateSession(Session session)
throws StatusException
The UaServer listens to the event as well, and delegates the certificate check to its
certificateValidator.
session - the session to be created.
StatusException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||