|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mindbright.ssh2.SSH2AuthHostBased
This class implements a module for publickey authentication as defined in the
userauth protocol spec. It uses the interface SSH2PKISigner to
access an abstract PKI signing mechanism (e.g. implemented with simple file
based public/private keys without certificates).
SSH2AuthModule,
SSH2PKISigner| Field Summary | |
static java.lang.String |
STANDARD_NAME
|
| Constructor Summary | |
SSH2AuthHostBased(SSH2PKISigner signer)
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String STANDARD_NAME
| Constructor Detail |
public SSH2AuthHostBased(SSH2PKISigner signer)
| Method Detail |
protected SSH2PKISigner getSigner()
public java.lang.String getStandardName()
SSH2AuthModule
getStandardName in interface SSH2AuthModule
public SSH2TransportPDU processMethodMessage(SSH2UserAuth userAuth,
SSH2TransportPDU pdu)
throws SSH2Exception
SSH2AuthModule
processMethodMessage in interface SSH2AuthModuleuserAuth - the authentication layer responsiblepdu - the method specific packet
null if no packet
should be sent.
SSH2Exception - if an error occurs
public SSH2TransportPDU startAuthentication(SSH2UserAuth userAuth)
throws SSH2SignatureException
SSH2AuthModuleSSH2UserAuth.
startAuthentication in interface SSH2AuthModuleuserAuth - the authentication layer responsible
SSH2SignatureExceptionpublic void clearSensitiveData()
SSH2AuthModule
clearSensitiveData in interface SSH2AuthModulepublic boolean retryPointless()
SSH2AuthModule
retryPointless in interface SSH2AuthModule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||