public class SVNAuthentication extends Object
User credentials used by SVNRepository drivers to authenticate a user to a repository server, are provided to those drivers by ISVNAuthenticationManager implementations.
SVNPasswordAuthentication
,
SVNSSHAuthentication
,
ISVNAuthenticationManager
,
SVNRepository
Constructor and Description |
---|
SVNAuthentication(String kind,
String userName,
boolean storageAllowed)
Deprecated.
use constructor with SVNURL parameter instead
|
SVNAuthentication(String kind,
String userName,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Creates a username user credential object given a username.
|
Modifier and Type | Method and Description |
---|---|
SVNAuthentication |
copy()
Creates a deep copy of this credentials object.
|
protected char[] |
copyOf(char[] source) |
void |
dismissSensitiveData()
Disposes sensitive data (e.g.
|
String |
getKind()
Returns a credential kind for which this authentication
credential is used.
|
SVNURL |
getURL() |
String |
getUserName()
Reurns the username.
|
boolean |
isPartial()
Says if these credentials are partial.
|
boolean |
isStorageAllowed()
Says if this credential may be cached in the global auth cache.
|
public SVNAuthentication(String kind, String userName, boolean storageAllowed)
kind
- a credential kinduserName
- a repository account usernamestorageAllowed
- if true then
this credential is allowed to be stored in the
global auth cache, otherwise notpublic SVNAuthentication(String kind, String userName, boolean storageAllowed, SVNURL url, boolean isPartial)
kind
- a credential kinduserName
- a repository account usernamestorageAllowed
- if true then
this credential is allowed to be stored in the
global auth cache, otherwise noturl
- url these credentials are applied topublic String getUserName()
public boolean isStorageAllowed()
public boolean isPartial()
public String getKind()
public SVNURL getURL()
public void dismissSensitiveData()
public SVNAuthentication copy()
protected char[] copyOf(char[] source)
Copyright © 2024. All rights reserved.