Package net.schmizz.sshj.userauth.method
Class AuthHostbased
- java.lang.Object
-
- net.schmizz.sshj.userauth.method.AbstractAuthMethod
-
- net.schmizz.sshj.userauth.method.KeyedAuthMethod
-
- net.schmizz.sshj.userauth.method.AuthHostbased
-
- All Implemented Interfaces:
SSHPacketHandler
,AuthMethod
public class AuthHostbased extends KeyedAuthMethod
Implements thehostbased
SSH authentication method.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
hostname
protected java.lang.String
hostuser
-
Fields inherited from class net.schmizz.sshj.userauth.method.KeyedAuthMethod
kProv
-
Fields inherited from class net.schmizz.sshj.userauth.method.AbstractAuthMethod
log, params
-
-
Constructor Summary
Constructors Constructor Description AuthHostbased(KeyProvider kProv, java.lang.String hostname, java.lang.String hostuser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SSHPacket
buildReq()
Builds aSSHPacket
containing the fields common to all authentication method.-
Methods inherited from class net.schmizz.sshj.userauth.method.KeyedAuthMethod
putPubKey, putSig, shouldRetry
-
Methods inherited from class net.schmizz.sshj.userauth.method.AbstractAuthMethod
getName, handle, init, makeAccountResource, request, setLoggerFactory
-
-
-
-
Constructor Detail
-
AuthHostbased
public AuthHostbased(KeyProvider kProv, java.lang.String hostname, java.lang.String hostuser)
-
-
Method Detail
-
buildReq
protected SSHPacket buildReq() throws UserAuthException
Description copied from class:AbstractAuthMethod
Builds aSSHPacket
containing the fields common to all authentication method. Method-specific fields can further be put into this buffer.- Overrides:
buildReq
in classAbstractAuthMethod
- Throws:
UserAuthException
-
-