|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserValidator
An interface used for custom user validation in UaServer.
| Method Summary | |
|---|---|
boolean |
onValidate(Session session,
ServerUserIdentity userIdentity)
Validate the user specified by token. |
void |
onValidationError(Session session,
org.opcfoundation.ua.core.UserIdentityToken userToken,
Exception exception)
Notification of a validation error. |
| Method Detail |
|---|
boolean onValidate(Session session,
ServerUserIdentity userIdentity)
throws StatusException
session - The session which the user is logging in.userIdentity - the user identity.
StatusException - if there is a problem with the validation. For example, if the session
is active, and you do not want to enable user identity change, throw the exception with
StatusCodes.Bad_IdentityChangeNotSupported.
void onValidationError(Session session,
org.opcfoundation.ua.core.UserIdentityToken userToken,
Exception exception)
session - The session which the user was logging in.userToken - The user token that was used.exception - The validation exception: StatusException if the user is not accepted.
SecureIdentityException if the token was not valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||