|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.ssh2.SSH2AuthKbdInteract
public class SSH2AuthKbdInteract
This class implements a module for keyboard-interactive authentication as
defined in the auth-kbdinteract protocol spec. It uses the interface
SSH2Interactor
for all interactions generated in the
authentication process. The keyboard-interactive method is suitable for any
authentication mechanism where the user enters authentication data via the
keyboard (e.g. SecurID and CryptoCard). No specifics about the
authentication mechanism is needed in the authentication module itself making
it a very flexible way of authentication.
SSH2AuthModule
,
SSH2Interactor
Field Summary | |
---|---|
static java.lang.String |
STANDARD_NAME
|
Constructor Summary | |
---|---|
SSH2AuthKbdInteract(SSH2Interactor interactor)
Creates an instance which will always query the user. |
|
SSH2AuthKbdInteract(SSH2Interactor interactor,
java.lang.String language,
java.lang.String submethods)
|
|
SSH2AuthKbdInteract(java.lang.String password)
Creates an instance which will never query the user. |
Method Summary | |
---|---|
void |
clearSensitiveData()
Clean up any sensitive data in this authentication module. |
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 SSH2AuthKbdInteract(SSH2Interactor interactor)
interactor
- Interactor used to query the userpublic SSH2AuthKbdInteract(java.lang.String password)
password
- Password to authenticate with oncepublic SSH2AuthKbdInteract(SSH2Interactor interactor, java.lang.String language, java.lang.String submethods)
Method Detail |
---|
public java.lang.String getStandardName()
SSH2AuthModule
getStandardName
in interface SSH2AuthModule
public SSH2TransportPDU processMethodMessage(SSH2UserAuth userAuth, SSH2TransportPDU pdu) throws SSH2UserCancelException
SSH2AuthModule
processMethodMessage
in interface SSH2AuthModule
userAuth
- the authentication layer responsiblepdu
- the method specific packet
null
if no packet
should be sent.
SSH2UserCancelException
public SSH2TransportPDU startAuthentication(SSH2UserAuth userAuth)
SSH2AuthModule
SSH2UserAuth
.
startAuthentication
in interface SSH2AuthModule
userAuth
- the authentication layer responsible
public void clearSensitiveData()
SSH2AuthModule
clearSensitiveData
in interface SSH2AuthModule
public boolean retryPointless()
SSH2AuthModule
retryPointless
in interface SSH2AuthModule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |