public class DefaultSVNPersistentAuthenticationProvider extends java.lang.Object implements ISVNAuthenticationProvider, ISVNPersistentAuthenticationProvider
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultSVNPersistentAuthenticationProvider.GnomeKeyringPasswordStorage |
static interface |
DefaultSVNPersistentAuthenticationProvider.IPasswordStorage |
protected class |
DefaultSVNPersistentAuthenticationProvider.MacOsKeychainPasswordStorage |
protected class |
DefaultSVNPersistentAuthenticationProvider.SimplePasswordStorage |
protected class |
DefaultSVNPersistentAuthenticationProvider.WinCryptPasswordStorage |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GNOME_KEYRING_PASSTYPE |
static java.lang.String |
GNOME_KEYRING_PASSWORD_STORAGE |
static java.lang.String |
MAC_OS_KEYCHAIN_PASSTYPE |
static java.lang.String |
MAC_OS_KEYCHAIN_PASSWORD_STORAGE |
static java.lang.String |
SIMPLE_PASSTYPE |
static java.lang.String |
WIN_CRYPT_PASSTYPE |
static java.lang.String |
WINDOWS_CRYPTO_API_PASSWORD_STORAGE |
ACCEPTED, ACCEPTED_TEMPORARY, REJECTED| Modifier | Constructor and Description |
|---|---|
protected |
DefaultSVNPersistentAuthenticationProvider(java.io.File directory,
java.lang.String userName,
ISVNAuthenticationStorageOptions authOptions,
DefaultSVNOptions defaultOptions,
ISVNHostOptionsProvider hostOptionsProvider) |
| Modifier and Type | Method and Description |
|---|---|
int |
acceptServerAuthentication(SVNURL url,
java.lang.String r,
java.lang.Object serverAuth,
boolean resultMayBeStored)
Checks a server authentication certificate and whether accepts it
(if the client trusts it) or not.
|
protected DefaultSVNPersistentAuthenticationProvider.IPasswordStorage[] |
createPasswordStorages(DefaultSVNOptions options) |
protected java.lang.String |
getAuthFileName(java.lang.String realm) |
boolean |
isMSCapi(java.lang.String filepath) |
byte[] |
loadFingerprints(java.lang.String realm) |
protected java.lang.String |
preprocessRealm(java.lang.String realm) |
SVNAuthentication |
requestClientAuthentication(java.lang.String kind,
SVNURL url,
java.lang.String realm,
SVNErrorMessage errorMessage,
SVNAuthentication previousAuth,
boolean authMayBeStored)
Returns a next user credential of the specified kind for the given
authentication realm.
|
void |
saveAuthentication(SVNAuthentication auth,
java.lang.String kind,
java.lang.String realm) |
void |
saveFingerprints(java.lang.String realm,
byte[] fingerprints) |
public static final java.lang.String WINDOWS_CRYPTO_API_PASSWORD_STORAGE
public static final java.lang.String MAC_OS_KEYCHAIN_PASSWORD_STORAGE
public static final java.lang.String GNOME_KEYRING_PASSWORD_STORAGE
public static final java.lang.String SIMPLE_PASSTYPE
public static final java.lang.String WIN_CRYPT_PASSTYPE
public static final java.lang.String MAC_OS_KEYCHAIN_PASSTYPE
public static final java.lang.String GNOME_KEYRING_PASSTYPE
protected DefaultSVNPersistentAuthenticationProvider(java.io.File directory,
java.lang.String userName,
ISVNAuthenticationStorageOptions authOptions,
DefaultSVNOptions defaultOptions,
ISVNHostOptionsProvider hostOptionsProvider)
protected DefaultSVNPersistentAuthenticationProvider.IPasswordStorage[] createPasswordStorages(DefaultSVNOptions options)
public SVNAuthentication requestClientAuthentication(java.lang.String kind, SVNURL url, java.lang.String realm, SVNErrorMessage errorMessage, SVNAuthentication previousAuth, boolean authMayBeStored)
ISVNAuthenticationProvider
If this provider has got more than one credentials (say, a list of credentials),
to get the first one of them previousAuth is set to
null.
requestClientAuthentication in interface ISVNAuthenticationProviderkind - a credential kind (for example, like those defined in
ISVNAuthenticationManager)url - a repository location that is to be accessedrealm - a repository authentication realm (host, port, realm string)errorMessage - the recent authentication failure error messagepreviousAuth - the credential that was previously retrieved (to tell if it's
not accepted)authMayBeStored - if true then the returned credential
can be cached, otherwise it won't be cached anywayprotected java.lang.String preprocessRealm(java.lang.String realm)
public boolean isMSCapi(java.lang.String filepath)
public void saveAuthentication(SVNAuthentication auth, java.lang.String kind, java.lang.String realm) throws SVNException
saveAuthentication in interface ISVNPersistentAuthenticationProviderSVNExceptionprotected java.lang.String getAuthFileName(java.lang.String realm)
public int acceptServerAuthentication(SVNURL url, java.lang.String r, java.lang.Object serverAuth, boolean resultMayBeStored)
ISVNAuthenticationProvider
This method is used by an SSL manager (see DefaultSVNSSLTrustManager).
acceptServerAuthentication in interface ISVNAuthenticationProviderurl - a repository location that is accessedr - a repository authentication realm (host, port, realm string)serverAuth - a server certificate objectresultMayBeStored - if true then the server certificate
can be cached, otherwise notISVNAuthenticationProvider.REJECTED, ISVNAuthenticationProvider.ACCEPTED_TEMPORARY, or ISVNAuthenticationProvider.ACCEPTED)public byte[] loadFingerprints(java.lang.String realm)
loadFingerprints in interface ISVNPersistentAuthenticationProviderpublic void saveFingerprints(java.lang.String realm,
byte[] fingerprints)
saveFingerprints in interface ISVNPersistentAuthenticationProviderCopyright © 2004-2012 TMate Software Ltd. All Rights Reserved.