public interface UserAuth extends ClientSessionHolder, UserAuthInstance<ClientSession>
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called to release any allocated resources
|
void |
init(ClientSession session,
java.lang.String service) |
boolean |
process(Buffer buffer) |
getClientSession
getSession
findByName, getName, getNameList, getNames, removeByName
void init(ClientSession session, java.lang.String service) throws java.lang.Exception
session
- The ClientSession
service
- The requesting service namejava.lang.Exception
- If failed to initialize the mechanismboolean process(Buffer buffer) throws java.lang.Exception
buffer
- 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 usedjava.lang.Exception
- If failed to process the requestvoid destroy()