com.mindbright.ssh2
Class SSH2AuthSSHComSecurID
java.lang.Object
|
+--com.mindbright.ssh2.SSH2AuthSSHComSecurID
- All Implemented Interfaces:
- SSH2AuthModule
- public class SSH2AuthSSHComSecurID
- extends java.lang.Object
- implements SSH2AuthModule
This class implements a module for SecurID authentication as defined by SSH
Inc. as the 'local' method 'securid-1@ssh.com'. It uses the interface
SSH2Interactor for all interactions generated in the
authentication process. This method is not part of any public standard, it's
currently only available with SSH2 servers from SSH Communcations.
- See Also:
SSH2AuthModule,
SSH2Interactor
|
Constructor Summary |
SSH2AuthSSHComSecurID(SSH2Interactor interactor,
java.lang.String promptPIN,
java.lang.String promptNext,
java.lang.String promptNew,
java.lang.String promptNew2,
java.lang.String promptSelect,
java.lang.String promptSystem)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STANDARD_NAME
public static final java.lang.String STANDARD_NAME
- See Also:
- Constant Field Values
SSH2AuthSSHComSecurID
public SSH2AuthSSHComSecurID(SSH2Interactor interactor,
java.lang.String promptPIN,
java.lang.String promptNext,
java.lang.String promptNew,
java.lang.String promptNew2,
java.lang.String promptSelect,
java.lang.String promptSystem)
getStandardName
public java.lang.String getStandardName()
- Description copied from interface:
SSH2AuthModule
- Should give the standard name of this module as used in the userauth
protocol.
- Specified by:
getStandardName in interface SSH2AuthModule
- Returns:
- the standard name of the module
processMethodMessage
public SSH2TransportPDU processMethodMessage(SSH2UserAuth userAuth,
SSH2TransportPDU pdu)
throws SSH2UserCancelException
- Description copied from interface:
SSH2AuthModule
- Processes the given method specific packet and returns a new
packet which will be sent to peer to continue the authentication.
- Specified by:
processMethodMessage in interface SSH2AuthModule
- Parameters:
userAuth - the authentication layer responsiblepdu - the method specific packet
- Returns:
- the new packet to send to peer, or
null if no packet
should be sent.
SSH2UserCancelException
startAuthentication
public SSH2TransportPDU startAuthentication(SSH2UserAuth userAuth)
throws SSH2UserCancelException
- Description copied from interface:
SSH2AuthModule
- Starts the execution of this module, called from the given
SSH2UserAuth.
- Specified by:
startAuthentication in interface SSH2AuthModule
- Parameters:
userAuth - the authentication layer responsible
- Returns:
- the packet which starts this authentication method
(i.e. when sent to peer)
SSH2UserCancelException