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) |
default void |
signalAuthMethodFailure(ClientSession session,
java.lang.String service,
boolean partial,
java.util.List<java.lang.String> serverMethods,
Buffer buffer)
Signals reception of
SSH_MSG_USERAUTH_FAILURE message |
default void |
signalAuthMethodSuccess(ClientSession session,
java.lang.String service,
Buffer buffer)
Signal reception of
SSH_MSG_USERAUTH_SUCCESS message |
getClientSessiongetSessionfindByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByNamevoid init(ClientSession session, java.lang.String service) throws java.lang.Exception
session - The ClientSessionservice - 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 requestdefault void signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer) throws java.lang.Exception
SSH_MSG_USERAUTH_SUCCESS messagesession - The ClientSessionservice - The requesting service namebuffer - The Buffer containing the success message (after having consumed the relevant data from
it)java.lang.Exception - If failed to handle the callback - Note: may cause session closedefault void signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer) throws java.lang.Exception
SSH_MSG_USERAUTH_FAILURE messagesession - The ClientSessionservice - The requesting service namepartial - true if some partial authentication success so farserverMethods - The List of authentication methods that can continuebuffer - The Buffer containing the failure message (after having consumed the relevant data
from it)java.lang.Exception - If failed to handle the callback - Note: may cause session closevoid destroy()