hudson.scm
Class UserProvidedCredential.AuthenticationManagerImpl

java.lang.Object
  extended by org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager
      extended by hudson.scm.UserProvidedCredential.AuthenticationManagerImpl
All Implemented Interfaces:
org.tmatesoft.svn.core.auth.ISVNAuthenticationManager, org.tmatesoft.svn.core.auth.ISVNSSHHostVerifier
Enclosing class:
UserProvidedCredential

public class UserProvidedCredential.AuthenticationManagerImpl
extends org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager

ISVNAuthenticationManager that uses the user provided credential.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager
org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.DumbAuthenticationProvider, org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.IPersistentAuthenticationProvider
 
Field Summary
 
Fields inherited from interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
PASSWORD, SSH, SSL, USERNAME
 
Constructor Summary
UserProvidedCredential.AuthenticationManagerImpl(java.io.PrintWriter logWriter)
           
UserProvidedCredential.AuthenticationManagerImpl(hudson.model.TaskListener listener)
           
UserProvidedCredential.AuthenticationManagerImpl(java.io.Writer w)
           
 
Method Summary
 void acknowledgeAuthentication(boolean accepted, java.lang.String kind, java.lang.String realm, org.tmatesoft.svn.core.SVNErrorMessage errorMessage, org.tmatesoft.svn.core.auth.SVNAuthentication authentication)
           
 void checkIfProtocolCompleted()
          Verifies that the expected authentication happened.
 org.tmatesoft.svn.core.auth.SVNAuthentication getFirstAuthentication(java.lang.String kind, java.lang.String realm, org.tmatesoft.svn.core.SVNURL url)
           
 org.tmatesoft.svn.core.auth.SVNAuthentication getNextAuthentication(java.lang.String kind, java.lang.String realm, org.tmatesoft.svn.core.SVNURL url)
          Getting here means the authentication tried in getFirstAuthentication(String, String, SVNURL) didn't work.
protected  void onSuccess(java.lang.String realm, SubversionSCM.DescriptorImpl.Credential cred)
          Called upon a successful acceptance of the credential.
 
Methods inherited from class org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager
acknowledgeTrustManager, createCacheAuthenticationProvider, createDefaultAuthenticationProvider, createRuntimeAuthenticationProvider, getAuthenticationProvider, getAuthTypes, getConfigFile, getConnectTimeout, getDefaultSSHAuthentication, getDefaultSSHPortNumber, getProxyManager, getReadTimeout, getRuntimeAuthStorage, getServersFile, getTrustManager, getUserName, isAuthenticationForced, isAuthStorageEnabled, isStorePasswords, isStorePlainTextPassphrases, isStorePlainTextPasswords, isStoreSSLClientCertificatePassphrases, setAuthenticationForced, setAuthenticationOutcomeListener, setAuthenticationProvider, setAuthStoreHandler, setInMemoryConfigOptions, setInMemoryServersOptions, setRuntimeStorage, verifyHostKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProvidedCredential.AuthenticationManagerImpl

public UserProvidedCredential.AuthenticationManagerImpl(java.io.PrintWriter logWriter)

UserProvidedCredential.AuthenticationManagerImpl

public UserProvidedCredential.AuthenticationManagerImpl(java.io.Writer w)

UserProvidedCredential.AuthenticationManagerImpl

public UserProvidedCredential.AuthenticationManagerImpl(hudson.model.TaskListener listener)
Method Detail

getFirstAuthentication

public org.tmatesoft.svn.core.auth.SVNAuthentication getFirstAuthentication(java.lang.String kind,
                                                                            java.lang.String realm,
                                                                            org.tmatesoft.svn.core.SVNURL url)
                                                                     throws org.tmatesoft.svn.core.SVNException
Specified by:
getFirstAuthentication in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Overrides:
getFirstAuthentication in class org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager
Throws:
org.tmatesoft.svn.core.SVNException

getNextAuthentication

public org.tmatesoft.svn.core.auth.SVNAuthentication getNextAuthentication(java.lang.String kind,
                                                                           java.lang.String realm,
                                                                           org.tmatesoft.svn.core.SVNURL url)
                                                                    throws org.tmatesoft.svn.core.SVNException
Getting here means the authentication tried in getFirstAuthentication(String, String, SVNURL) didn't work.

Specified by:
getNextAuthentication in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Overrides:
getNextAuthentication in class org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager
Throws:
org.tmatesoft.svn.core.SVNException

acknowledgeAuthentication

public void acknowledgeAuthentication(boolean accepted,
                                      java.lang.String kind,
                                      java.lang.String realm,
                                      org.tmatesoft.svn.core.SVNErrorMessage errorMessage,
                                      org.tmatesoft.svn.core.auth.SVNAuthentication authentication)
                               throws org.tmatesoft.svn.core.SVNException
Specified by:
acknowledgeAuthentication in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Overrides:
acknowledgeAuthentication in class org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager
Throws:
org.tmatesoft.svn.core.SVNException

onSuccess

protected void onSuccess(java.lang.String realm,
                         SubversionSCM.DescriptorImpl.Credential cred)
Called upon a successful acceptance of the credential.


checkIfProtocolCompleted

public void checkIfProtocolCompleted()
                              throws org.tmatesoft.svn.core.SVNCancelException
Verifies that the expected authentication happened.

Throws:
org.tmatesoft.svn.core.SVNCancelException


Copyright © 2010. All Rights Reserved.