Class DefaultSVNAuthenticationManager.DumbAuthenticationProvider
java.lang.Object
org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.DumbAuthenticationProvider
- All Implemented Interfaces:
ISVNAuthenticationProvider
- Enclosing class:
- DefaultSVNAuthenticationManager
protected class DefaultSVNAuthenticationManager.DumbAuthenticationProvider
extends java.lang.Object
implements ISVNAuthenticationProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate char[]private char[]private java.io.Fileprivate java.lang.StringFields inherited from interface org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider
ACCEPTED, ACCEPTED_TEMPORARY, REJECTED -
Constructor Summary
ConstructorsConstructorDescriptionDumbAuthenticationProvider(java.lang.String userName, char[] password, java.io.File privateKey, char[] passphrase, boolean store) -
Method Summary
Modifier and TypeMethodDescriptionintacceptServerAuthentication(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.voidrequestClientAuthentication(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
myUserName
private java.lang.String myUserName -
myPassword
private char[] myPassword -
myIsStore
private boolean myIsStore -
myPassphrase
private char[] myPassphrase -
myPrivateKey
private java.io.File myPrivateKey
-
-
Constructor Details
-
DumbAuthenticationProvider
public DumbAuthenticationProvider(java.lang.String userName, char[] password, java.io.File privateKey, char[] passphrase, boolean store)
-
-
Method Details
-
requestClientAuthentication
public SVNAuthentication requestClientAuthentication(java.lang.String kind, SVNURL url, java.lang.String realm, SVNErrorMessage errorMessage, SVNAuthentication previousAuth, boolean authMayBeStored) Description copied from interface:ISVNAuthenticationProviderReturns a next user credential of the specified kind for the given authentication realm.If this provider has got more than one credentials (say, a list of credentials), to get the first one of them
previousAuthis set to null.- Specified by:
requestClientAuthenticationin interfaceISVNAuthenticationProvider- Parameters:
kind- a credential kind (for example, like those defined inISVNAuthenticationManager)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 anyway- Returns:
- a next user credential
-
acceptServerAuthentication
public int acceptServerAuthentication(SVNURL url, java.lang.String r, java.lang.Object serverAuth, boolean resultMayBeStored) Description copied from interface:ISVNAuthenticationProviderChecks a server authentication certificate and whether accepts it (if the client trusts it) or not.This method is used by an SSL manager (see
DefaultSVNSSLTrustManager).- Specified by:
acceptServerAuthenticationin interfaceISVNAuthenticationProvider- Parameters:
url- 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 not- Returns:
- the result of the certificate check (
ISVNAuthenticationProvider.REJECTED,ISVNAuthenticationProvider.ACCEPTED_TEMPORARY, orISVNAuthenticationProvider.ACCEPTED)
-
dismissSensitiveData
public void dismissSensitiveData()
-