Package net.schmizz.sshj.userauth.method
Interface AuthMethod
-
- All Superinterfaces:
SSHPacketHandler
- All Known Implementing Classes:
AbstractAuthMethod,AuthGssApiWithMic,AuthHostbased,AuthKeyboardInteractive,AuthNone,AuthPassword,AuthPublickey,KeyedAuthMethod
public interface AuthMethod extends SSHPacketHandler
An authentication method of the SSH Authentication Protocol.
-
-
Method Summary
Modifier and Type Method Description java.lang.StringgetName()voidinit(AuthParams params)This method must be called before requesting authentication with this method.voidrequest()voidsetLoggerFactory(LoggerFactory loggerFactory)booleanshouldRetry()-
Methods inherited from interface net.schmizz.sshj.common.SSHPacketHandler
handle
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- assigned name of this authentication method
-
init
void init(AuthParams params)
This method must be called before requesting authentication with this method.- Parameters:
params- parameters needed for authentication
-
request
void request() throws UserAuthException, TransportException- 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
void setLoggerFactory(LoggerFactory loggerFactory)
-
-