Package org.apache.sshd.client.auth
Interface UserAuth
- All Superinterfaces:
ClientSessionHolder,NamedResource,UserAuthInstance<ClientSession>
- All Known Implementing Classes:
AbstractUserAuth,UserAuthHostBased,UserAuthKeyboardInteractive,UserAuthPassword,UserAuthPublicKey
Represents a user authentication mechanism
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Method Summary
Methods inherited from interface org.apache.sshd.client.session.ClientSessionHolder
getClientSessionMethods inherited from interface org.apache.sshd.common.NamedResource
getNameMethods inherited from interface org.apache.sshd.common.auth.UserAuthInstance
getSession
-
Method Details
-
init
- Parameters:
session- TheClientSessionservice- The requesting service name- Throws:
Exception- If failed to initialize the mechanism
-
process
- Parameters:
buffer- TheBufferto process -nullif not a response buffer, i.e., the underlying authentication mechanism should initiate whatever challenge/response mechanism is required- Returns:
trueif request handled -falseif the next authentication mechanism should be used- Throws:
Exception- If failed to process the request
-
destroy
void destroy()Called to release any allocated resources
-