public class SVNSSHAuthentication extends SVNAuthentication
To obtain an ssh user credential, specify the SSH
kind to credentials getter method of ISVNAuthenticationManager:
getFirstAuthentication()
,
getNextAuthentication()
.
ISVNAuthenticationManager
Modifier and Type | Field and Description |
---|---|
private com.trilead.ssh2.auth.AgentProxy |
myAgentProxy |
private char[] |
myPassphrase |
private char[] |
myPassword |
private int |
myPortNumber |
private java.io.File |
myPrivateKeyFile |
private char[] |
myPrivateKeyValue |
Modifier | Constructor and Description |
---|---|
|
SVNSSHAuthentication(java.lang.String userName,
com.trilead.ssh2.auth.AgentProxy agentProxy,
int portNumber,
SVNURL url,
boolean isPartial)
Deprecated.
Use {@link #newInstance(String, AgentProxy, int, SVNURL, boolean) method
|
private |
SVNSSHAuthentication(java.lang.String userName,
char[] password,
java.io.File keyFile,
char[] keyValue,
char[] passphrase,
com.trilead.ssh2.auth.AgentProxy agentProxy,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial) |
|
SVNSSHAuthentication(java.lang.String userName,
char[] privateKey,
java.lang.String passphrase,
int portNumber,
boolean storageAllowed)
Deprecated.
Use {@link #newInstance(String, char[], char[], int, boolean, SVNURL, boolean) method
|
|
SVNSSHAuthentication(java.lang.String userName,
char[] privateKey,
java.lang.String passphrase,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Deprecated.
Use {@link #newInstance(String, char[], char[], int, boolean, SVNURL, boolean) method
|
|
SVNSSHAuthentication(java.lang.String userName,
java.io.File keyFile,
java.lang.String passphrase,
int portNumber,
boolean storageAllowed)
Deprecated.
Use {@link #newInstance(String, File, char[], int, boolean, SVNURL, boolean) method
|
|
SVNSSHAuthentication(java.lang.String userName,
java.io.File keyFile,
java.lang.String passphrase,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Deprecated.
Use {@link #newInstance(String, File, char[], int, boolean, SVNURL, boolean) method
|
|
SVNSSHAuthentication(java.lang.String userName,
java.lang.String password,
int portNumber,
boolean storageAllowed)
Deprecated.
|
|
SVNSSHAuthentication(java.lang.String userName,
java.lang.String password,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SVNAuthentication |
copy()
Creates a deep copy of this credentials object.
|
void |
dismissSensitiveData()
Disposes sensitive data (e.g.
|
com.trilead.ssh2.auth.AgentProxy |
getAgentProxy()
Tells whether this authentication object has a SSH agent connection
|
java.lang.String |
getPassphrase()
Deprecated.
Use
getPassphraseValue() method |
char[] |
getPassphraseValue()
Returns the password to the ssh private key.
|
java.lang.String |
getPassword()
Deprecated.
Use
getPasswordValue() method |
char[] |
getPasswordValue()
Returns password.
|
int |
getPortNumber()
Returns the number of the port across which an ssh tunnel
is established.
|
char[] |
getPrivateKey()
Returns ssh private key.
|
java.io.File |
getPrivateKeyFile()
Returns the File representation referring to the file with the
user's ssh private key.
|
boolean |
hasPrivateKey()
Tells whether this authentication object contains a user's private key.
|
static SVNSSHAuthentication |
newInstance(java.lang.String userName,
com.trilead.ssh2.auth.AgentProxy agentProxy,
int portNumber,
SVNURL url,
boolean isPartial)
Creates a user credential object for authenticating over an ssh tunnel.
|
static SVNSSHAuthentication |
newInstance(java.lang.String userName,
char[] keyValue,
char[] passphrase,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Creates a user credential object for authenticating over an ssh tunnel.
|
static SVNSSHAuthentication |
newInstance(java.lang.String userName,
char[] password,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Creates a user credential object for authenticating over an ssh tunnel.
|
static SVNSSHAuthentication |
newInstance(java.lang.String userName,
java.io.File keyFile,
char[] passphrase,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Creates a user credential object for authenticating over an ssh tunnel.
|
copyOf, getKind, getURL, getUserName, isPartial, isStorageAllowed
private char[] myPassword
private char[] myPassphrase
private java.io.File myPrivateKeyFile
private com.trilead.ssh2.auth.AgentProxy myAgentProxy
private int myPortNumber
private char[] myPrivateKeyValue
public SVNSSHAuthentication(java.lang.String userName, java.lang.String password, int portNumber, boolean storageAllowed)
newInstance(String, char[], int, boolean, SVNURL, boolean)
methodpublic SVNSSHAuthentication(java.lang.String userName, java.lang.String password, int portNumber, boolean storageAllowed, SVNURL url, boolean isPartial)
newInstance(String, char[], int, boolean, SVNURL, boolean)
methodpublic SVNSSHAuthentication(java.lang.String userName, java.io.File keyFile, java.lang.String passphrase, int portNumber, boolean storageAllowed)
public SVNSSHAuthentication(java.lang.String userName, java.io.File keyFile, java.lang.String passphrase, int portNumber, boolean storageAllowed, SVNURL url, boolean isPartial)
public SVNSSHAuthentication(java.lang.String userName, char[] privateKey, java.lang.String passphrase, int portNumber, boolean storageAllowed)
public SVNSSHAuthentication(java.lang.String userName, char[] privateKey, java.lang.String passphrase, int portNumber, boolean storageAllowed, SVNURL url, boolean isPartial)
public SVNSSHAuthentication(java.lang.String userName, com.trilead.ssh2.auth.AgentProxy agentProxy, int portNumber, SVNURL url, boolean isPartial)
private SVNSSHAuthentication(java.lang.String userName, char[] password, java.io.File keyFile, char[] keyValue, char[] passphrase, com.trilead.ssh2.auth.AgentProxy agentProxy, int portNumber, boolean storageAllowed, SVNURL url, boolean isPartial)
public static SVNSSHAuthentication newInstance(java.lang.String userName, char[] password, int portNumber, boolean storageAllowed, SVNURL url, boolean isPartial)
userName
- the name of a user to authenticatepassword
- the user's passwordportNumber
- the number of a port to establish an ssh tunnel overstorageAllowed
- if true then
this credential is allowed to be stored in the
global auth cache, otherwise noturl
- url these credentials are applied topublic static SVNSSHAuthentication newInstance(java.lang.String userName, java.io.File keyFile, char[] passphrase, int portNumber, boolean storageAllowed, SVNURL url, boolean isPartial)
userName
- the name of a user to authenticatekeyFile
- the user's ssh private key filepassphrase
- a password to the ssh private keyportNumber
- the number of a port to establish an ssh tunnel overstorageAllowed
- if true then
this credential is allowed to be stored in the
global auth cache, otherwise noturl
- url these credentials are applied topublic static SVNSSHAuthentication newInstance(java.lang.String userName, char[] keyValue, char[] passphrase, int portNumber, boolean storageAllowed, SVNURL url, boolean isPartial)
userName
- the name of a user to authenticateprivateKey
- the user's ssh private keypassphrase
- a password to the ssh private keyportNumber
- the number of a port to establish an ssh tunnel overstorageAllowed
- if true then
this credential is allowed to be stored in the
global auth cache, otherwise noturl
- url these credentials are applied topublic static SVNSSHAuthentication newInstance(java.lang.String userName, com.trilead.ssh2.auth.AgentProxy agentProxy, int portNumber, SVNURL url, boolean isPartial)
userName
- the name of a user to authenticateagentProxy
- SSH agent proxyportNumber
- the number of a port to establish an ssh tunnel overurl
- url these credentials are applied topublic java.lang.String getPassword()
getPasswordValue()
methodpublic char[] getPasswordValue()
public java.lang.String getPassphrase()
getPassphraseValue()
methodgetPrivateKeyFile()
public char[] getPassphraseValue()
getPrivateKeyFile()
public java.io.File getPrivateKeyFile()
public char[] getPrivateKey()
public int getPortNumber()
public boolean hasPrivateKey()
getPrivateKey()
or
getPrivateKeyFile()
returns non-nullpublic com.trilead.ssh2.auth.AgentProxy getAgentProxy()
public void dismissSensitiveData()
SVNAuthentication
dismissSensitiveData
in class SVNAuthentication
public SVNAuthentication copy()
SVNAuthentication
copy
in class SVNAuthentication