|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.auth.SVNAuthentication org.tmatesoft.svn.core.auth.SVNSSHAuthentication
public class SVNSSHAuthentication
The SVNSSHAuthentication class represents a kind of credentials used to authenticate a user over an SSH tunnel.
To obtain an ssh user credential, specify the SSH
kind to credentials getter method of ISVNAuthenticationManager:
getFirstAuthentication()
,
getNextAuthentication()
.
ISVNAuthenticationManager
Constructor Summary | |
---|---|
SVNSSHAuthentication(java.lang.String userName,
char[] privateKey,
java.lang.String passphrase,
int portNumber,
boolean storageAllowed)
Deprecated. use constructor with SVNURL parameter instead |
|
SVNSSHAuthentication(java.lang.String userName,
char[] privateKey,
java.lang.String passphrase,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Creates a user credential object for authenticating over an ssh tunnel. |
|
SVNSSHAuthentication(java.lang.String userName,
java.io.File keyFile,
java.lang.String passphrase,
int portNumber,
boolean storageAllowed)
Deprecated. use constructor with SVNURL parameter instead |
|
SVNSSHAuthentication(java.lang.String userName,
java.io.File keyFile,
java.lang.String passphrase,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Creates a user credential object for authenticating over an ssh tunnel. |
|
SVNSSHAuthentication(java.lang.String userName,
java.lang.String password,
int portNumber,
boolean storageAllowed)
Deprecated. use constructor with SVNURL parameter instead |
|
SVNSSHAuthentication(java.lang.String userName,
java.lang.String password,
int portNumber,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Creates a user credential object for authenticating over an ssh tunnel. |
Method Summary | |
---|---|
java.lang.String |
getPassphrase()
Returns the password to the ssh private key. |
java.lang.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. |
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. |
Methods inherited from class org.tmatesoft.svn.core.auth.SVNAuthentication |
---|
getKind, getURL, getUserName, isPartial, isStorageAllowed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVNSSHAuthentication(java.lang.String userName, java.lang.String password, int portNumber, boolean storageAllowed)
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 notpublic SVNSSHAuthentication(java.lang.String userName, java.lang.String 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 SVNSSHAuthentication(java.lang.String userName, java.io.File keyFile, java.lang.String passphrase, int portNumber, boolean storageAllowed)
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 notpublic SVNSSHAuthentication(java.lang.String userName, java.io.File keyFile, java.lang.String 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 SVNSSHAuthentication(java.lang.String userName, char[] privateKey, java.lang.String passphrase, int portNumber, boolean storageAllowed)
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 notpublic SVNSSHAuthentication(java.lang.String userName, char[] privateKey, java.lang.String 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 toMethod Detail |
---|
public java.lang.String getPassword()
public java.lang.String getPassphrase()
getPrivateKeyFile()
public java.io.File getPrivateKeyFile()
public char[] getPrivateKey()
public int getPortNumber()
public boolean hasPrivateKey()
getPrivateKey()
or
getPrivateKeyFile()
returns non-null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |