org.tmatesoft.svn.core.auth
public class SVNSSHAuthentication extends SVNAuthentication
To obtain an ssh user credential, specify the SSH
kind to credentials getter method of ISVNAuthenticationManager:
getFirstAuthentication()
,
getNextAuthentication()
.
Version: 1.1.1
See Also: ISVNAuthenticationManager
Constructor Summary | |
---|---|
SVNSSHAuthentication(String userName, String password, int portNumber, boolean storageAllowed)
Creates a user credential object for authenticating over an ssh tunnel.
| |
SVNSSHAuthentication(String userName, File keyFile, String passphrase, int portNumber, boolean storageAllowed)
Creates a user credential object for authenticating over an ssh tunnel.
| |
SVNSSHAuthentication(String userName, char[] privateKey, String passphrase, int portNumber, boolean storageAllowed)
Creates a user credential object for authenticating over an ssh tunnel.
|
Method Summary | |
---|---|
String | getPassphrase()
Returns the password to the ssh private key.
|
String | getPassword()
Returns the user account's password. |
int | getPortNumber()
Returns the number of the port across which an ssh tunnel
is established.
|
char[] | getPrivateKey()
Returns ssh private key. |
File | getPrivateKeyFile()
Returns the File representation referring to the file with the
user's ssh private key. |
boolean | hasPrivateKey() |
Parameters: userName the name of a user to authenticate password the user's password portNumber the number of a port to establish an ssh tunnel over storageAllowed if true then this credential is allowed to be stored in the global auth cache, otherwise not
Parameters: userName the name of a user to authenticate keyFile the user's ssh private key file passphrase a password to the ssh private key portNumber the number of a port to establish an ssh tunnel over storageAllowed if true then this credential is allowed to be stored in the global auth cache, otherwise not
Parameters: userName the name of a user to authenticate privateKey the user's ssh private key passphrase a password to the ssh private key portNumber the number of a port to establish an ssh tunnel over storageAllowed if true then this credential is allowed to be stored in the global auth cache, otherwise not
Returns: the password to the private key
See Also: getPrivateKeyFile
Returns: the user's password
Returns: the port number to establish an ssh tunnel over
Returns: the user's private key file
Returns: the user's private key file