Package net.schmizz.sshj.userauth.method
Interface AuthMethod
- All Superinterfaces:
SSHPacketHandler
- All Known Implementing Classes:
AbstractAuthMethod
,AuthGssApiWithMic
,AuthHostbased
,AuthKeyboardInteractive
,AuthNone
,AuthPassword
,AuthPublickey
,KeyedAuthMethod
An authentication method of the SSH Authentication Protocol.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
void
init
(AuthParams params) This method must be called before requesting authentication with this method.void
request()
void
setLoggerFactory
(LoggerFactory loggerFactory) boolean
Methods inherited from interface net.schmizz.sshj.common.SSHPacketHandler
handle
-
Method Details
-
getName
String getName()- Returns:
- assigned name of this authentication method
-
init
This method must be called before requesting authentication with this method.- Parameters:
params
- parameters needed for authentication
-
request
- Throws:
UserAuthException
- if there is an error with the requestTransportException
- if there is a transport-related error
-
shouldRetry
boolean shouldRetry()- Returns:
- whether authentication should be reattempted if it failed.
-
setLoggerFactory
-