com.mindbright.ssh2
public class SSH2AuthHostBased extends java.lang.Object implements SSH2AuthModule
SSH2PKISigner to
access an abstract PKI signing mechanism (e.g. implemented with simple file
based public/private keys without certificates).SSH2AuthModule,
SSH2PKISigner| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STANDARD_NAME |
| Constructor and Description |
|---|
SSH2AuthHostBased(SSH2PKISigner signer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSensitiveData()
Clean up any sensitive data in this authentication module.
|
protected SSH2PKISigner |
getSigner() |
java.lang.String |
getStandardName()
Should give the standard name of this module as used in the userauth
protocol.
|
SSH2TransportPDU |
processMethodMessage(SSH2UserAuth userAuth,
SSH2TransportPDU pdu)
Processes the given method specific packet and returns a new
packet which will be sent to peer to continue the authentication.
|
boolean |
retryPointless()
Returns true if there is not any point in trying this method again
after it has failed once.
|
SSH2TransportPDU |
startAuthentication(SSH2UserAuth userAuth)
Starts the execution of this module, called from the given
SSH2UserAuth. |
public static final java.lang.String STANDARD_NAME
public SSH2AuthHostBased(SSH2PKISigner signer)
protected SSH2PKISigner getSigner()
public java.lang.String getStandardName()
SSH2AuthModulegetStandardName in interface SSH2AuthModulepublic SSH2TransportPDU processMethodMessage(SSH2UserAuth userAuth, SSH2TransportPDU pdu) throws SSH2Exception
SSH2AuthModuleprocessMethodMessage in interface SSH2AuthModuleuserAuth - the authentication layer responsiblepdu - the method specific packetnull if no packet
should be sent.SSH2Exception - if an error occurspublic SSH2TransportPDU startAuthentication(SSH2UserAuth userAuth) throws SSH2SignatureException
SSH2AuthModuleSSH2UserAuth.startAuthentication in interface SSH2AuthModuleuserAuth - the authentication layer responsibleSSH2SignatureExceptionpublic void clearSensitiveData()
SSH2AuthModuleclearSensitiveData in interface SSH2AuthModulepublic boolean retryPointless()
SSH2AuthModuleretryPointless in interface SSH2AuthModule