public abstract class AbstractUserAuth extends AbstractLoggingBean implements UserAuth
logBY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUserAuth(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called to release any allocated resources
|
ClientSession |
getClientSession() |
String |
getName() |
String |
getService() |
ClientSession |
getSession() |
void |
init(ClientSession session,
String service) |
boolean |
process(Buffer buffer) |
protected abstract boolean |
processAuthDataRequest(ClientSession session,
String service,
Buffer buffer) |
protected abstract boolean |
sendAuthDataRequest(ClientSession session,
String service) |
String |
toString() |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsignalAuthMethodFailure, signalAuthMethodSuccessfindByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByNameprotected AbstractUserAuth(String name)
public ClientSession getClientSession()
getClientSession in interface ClientSessionHolderClientSession usedpublic ClientSession getSession()
getSession in interface UserAuthInstance<ClientSession>public final String getName()
getName in interface NamedResourcepublic String getService()
public void init(ClientSession session, String service) throws Exception
init in interface UserAuthsession - The ClientSessionservice - The requesting service nameException - If failed to initialize the mechanismpublic boolean process(Buffer buffer) throws Exception
process in interface UserAuthbuffer - The Buffer to process - null if not a response buffer, i.e., the underlying
authentication mechanism should initiate whatever challenge/response mechanism is requiredtrue if request handled - false if the next authentication mechanism should be
usedException - If failed to process the requestprotected abstract boolean sendAuthDataRequest(ClientSession session, String service) throws Exception
Exceptionprotected abstract boolean processAuthDataRequest(ClientSession session, String service, Buffer buffer) throws Exception
Exceptionpublic void destroy()
UserAuthCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.