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 |
isCancellable()
Tells whether the authentication protocol is cancellable currently.
|
boolean |
process(Buffer buffer) |
protected abstract boolean |
processAuthDataRequest(ClientSession session,
String service,
Buffer buffer) |
protected abstract boolean |
sendAuthDataRequest(ClientSession session,
String service) |
protected void |
setCancellable(boolean cancellable)
Sets whether the authentication protocol is currently cancellable.
|
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>null if
the instance has not been initialized yetpublic final String getName()
getName in interface NamedResourcepublic String getService()
public boolean isCancellable()
UserAuthisCancellable in interface UserAuthtrue if the protocol can be canceled at its current state; false if not.protected void setCancellable(boolean cancellable)
cancellable - true if the protocol may be canceled in its current state; false if notpublic 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–2025 The Apache Software Foundation. All rights reserved.