com.mindbright.ssh
Class SSHPasswordAuthenticator
java.lang.Object
|
+--com.mindbright.ssh.SSHPasswordAuthenticator
- All Implemented Interfaces:
- SSHAuthenticator
- public class SSHPasswordAuthenticator
- extends java.lang.Object
- implements SSHAuthenticator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
username
protected java.lang.String username
password
protected java.lang.String password
cipher
protected int cipher
SSHPasswordAuthenticator
public SSHPasswordAuthenticator(java.lang.String username,
java.lang.String password,
java.lang.String cipher)
SSHPasswordAuthenticator
public SSHPasswordAuthenticator(java.lang.String username,
java.lang.String password)
getUsername
public java.lang.String getUsername(SSHClientUser origin)
- Specified by:
getUsername in interface SSHAuthenticator
getPassword
public java.lang.String getPassword(SSHClientUser origin)
- Specified by:
getPassword in interface SSHAuthenticator
getChallengeResponse
public java.lang.String getChallengeResponse(SSHClientUser origin,
java.lang.String challenge)
- Specified by:
getChallengeResponse in interface SSHAuthenticator
getAuthTypes
public int[] getAuthTypes(SSHClientUser origin)
- Specified by:
getAuthTypes in interface SSHAuthenticator
getCipher
public int getCipher(SSHClientUser origin)
- Specified by:
getCipher in interface SSHAuthenticator
getIdentityPassword
public java.lang.String getIdentityPassword(SSHClientUser origin)
- Specified by:
getIdentityPassword in interface SSHAuthenticator
getIdentityFile
public SSHRSAKeyFile getIdentityFile(SSHClientUser origin)
- Specified by:
getIdentityFile in interface SSHAuthenticator
verifyKnownHosts
public boolean verifyKnownHosts(com.mindbright.jca.security.interfaces.RSAPublicKey hostPub)
- Specified by:
verifyKnownHosts in interface SSHAuthenticator