public interface UserAuth extends ServerSessionHolder, UserAuthInstance<ServerSession>, UsernameHolder
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
auth(ServerSession session,
java.lang.String username,
java.lang.String service,
Buffer buffer)
Try to authenticate the user.
|
void |
destroy()
Free any system resources used by the module.
|
java.lang.Boolean |
next(Buffer buffer)
Handle another step in the authentication process.
|
getServerSessiongetSessionfindByName, getName, getNameList, getNames, ofName, removeByNamegetUsernamejava.lang.Boolean auth(ServerSession session, java.lang.String username, java.lang.String service, Buffer buffer) throws AsyncAuthException, java.lang.Exception
null value indicating if the
authentication succeeded. If the authentication is still ongoing, a null value should be returned.session - the current ServerSession sessionusername - the user trying to log inservice - the requested service namebuffer - the request buffer containing parameters specific to this requesttrue if the authentication succeeded, false if the
authentication failed and null if not finished yetAsyncAuthException - if the service is willing to perform an asynchronous authenticationjava.lang.Exception - if the authentication failsjava.lang.Boolean next(Buffer buffer) throws AsyncAuthException, java.lang.Exception
buffer - the request buffer containing parameters specific to this requesttrue if the authentication succeeded, false if the
authentication failed and null if not finished yetAsyncAuthException - if the service is willing to perform an asynchronous authenticationjava.lang.Exception - if the authentication failsvoid destroy()