org.tmatesoft.svn.core.auth
Class SVNPasswordAuthentication

java.lang.Object
  extended by org.tmatesoft.svn.core.auth.SVNAuthentication
      extended by org.tmatesoft.svn.core.auth.SVNPasswordAuthentication

public class SVNPasswordAuthentication
extends SVNAuthentication

The SVNPasswordAuthentication class represents a simple user credential pair - a username and password.

To obtain a password credential, specify the PASSWORD kind to credentials getter method of ISVNAuthenticationManager: getFirstAuthentication(), getNextAuthentication().

Since:
1.2

Constructor Summary
SVNPasswordAuthentication(java.lang.String userName, java.lang.String password, boolean storageAllowed)
          Deprecated. use constructor with SVNURL parameter instead
SVNPasswordAuthentication(java.lang.String userName, java.lang.String password, boolean storageAllowed, SVNURL url, boolean isPartial)
          Creates a password user credential object given a username and password.
 
Method Summary
 java.lang.String getPassword()
          Returns this user credential's password.
 
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

SVNPasswordAuthentication

public SVNPasswordAuthentication(java.lang.String userName,
                                 java.lang.String password,
                                 boolean storageAllowed)
Deprecated. use constructor with SVNURL parameter instead

Creates a password user credential object given a username and password.

Parameters:
userName - the name of a user to authenticate
password - the user's password
storageAllowed - if true then this credential is allowed to be stored in the global auth cache, otherwise not

SVNPasswordAuthentication

public SVNPasswordAuthentication(java.lang.String userName,
                                 java.lang.String password,
                                 boolean storageAllowed,
                                 SVNURL url,
                                 boolean isPartial)
Creates a password user credential object given a username and password.

Parameters:
userName - the name of a user to authenticate
password - the user's password
storageAllowed - if true then this credential is allowed to be stored in the global auth cache, otherwise not
url - url these credentials are applied to
Since:
1.3.1
Method Detail

getPassword

public java.lang.String getPassword()
Returns this user credential's password.

Returns:
the user's password