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(String userName,
String password,
boolean storageAllowed)
Deprecated.
|
SVNPasswordAuthentication(String userName,
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.
|
String |
getPassword()
Deprecated.
Use
getPasswordValue() method |
char[] |
getPasswordValue()
Returns password.
|
static SVNPasswordAuthentication |
newInstance(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, isStorageAllowed
public SVNPasswordAuthentication(String userName, 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(String userName, 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(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 String getPassword()
getPasswordValue()
methodpublic char[] getPasswordValue()
public void dismissSensitiveData()
SVNAuthentication
dismissSensitiveData
in class SVNAuthentication
public SVNAuthentication copy()
SVNAuthentication
copy
in class SVNAuthentication
Copyright © 2022. All rights reserved.