public class SVNPasswordAuthentication extends SVNAuthentication
To obtain a password credential, specify the PASSWORD
kind to credentials getter method of ISVNAuthenticationManager:
getFirstAuthentication(),
getNextAuthentication().
| Constructor and Description |
|---|
SVNPasswordAuthentication(java.lang.String userName,
java.lang.String password,
boolean storageAllowed)
Deprecated.
|
SVNPasswordAuthentication(java.lang.String userName,
java.lang.String password,
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. password) stored in this object.
|
java.lang.String |
getPassword()
Deprecated.
Use
getPasswordValue() method |
char[] |
getPasswordValue()
Returns password.
|
static SVNPasswordAuthentication |
newInstance(java.lang.String userName,
char[] password,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Creates a password user credential object given a username and password.
|
copyOf, getKind, getURL, getUserName, isPartial, isStorageAllowedpublic SVNPasswordAuthentication(java.lang.String userName,
java.lang.String password,
boolean storageAllowed)
newInstance(String, char[], boolean, SVNURL, boolean)userName - the name of a user to authenticatepassword - the user's passwordstorageAllowed - if true then
this credential is allowed to be stored in the
global auth cache, otherwise notpublic SVNPasswordAuthentication(java.lang.String userName,
java.lang.String password,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
newInstance(String, char[], boolean, SVNURL, boolean)userName - the name of a user to authenticatepassword - the user's passwordstorageAllowed - if true then
this credential is allowed to be stored in the
global auth cache, otherwise noturl - url these credentials are applied topublic static SVNPasswordAuthentication newInstance(java.lang.String userName, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
userName - the name of a user to authenticatepassword - the user's passwordstorageAllowed - if true then
this credential is allowed to be stored in the
global auth cache, otherwise noturl - url these credentials are applied toisPartial - whether this object only contains part of credentials informationpublic java.lang.String getPassword()
getPasswordValue() methodpublic char[] getPasswordValue()
public void dismissSensitiveData()
SVNAuthenticationdismissSensitiveData in class SVNAuthenticationpublic SVNAuthentication copy()
SVNAuthenticationcopy in class SVNAuthentication