public interface UserValidator
UaServer.| Modifier and Type | Method and Description |
|---|---|
boolean |
onValidate(Session session,
ServerUserIdentity userIdentity)
Validate the user specified by token.
|
void |
onValidationError(Session session,
UserIdentityToken userToken,
Exception exception)
Notification of a validation error.
|
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, 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.Copyright © 2026. All rights reserved.