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() |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindByName, getNameList, getNames, removeByNameprotected AbstractUserAuth(String name)
public ClientSession getClientSession()
getClientSession in interface ClientSessionHolderClientSession usedpublic ClientSession getSession()
getSession in interface UserAuthInstance<ClientSession>null if the instance has not
been initialized yetpublic 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–2017 The Apache Software Foundation. All rights reserved.