org.schmant.task.svnkit
Class PromptingAuthenticationProvider

java.lang.Object
  extended by org.schmant.task.svnkit.PromptingAuthenticationProvider
All Implemented Interfaces:
ISVNAuthenticationProvider

public class PromptingAuthenticationProvider
extends Object
implements ISVNAuthenticationProvider

This Subversion authentication provider prompts the user for credentials. It requires that the Java process has an attached console, which means that it cannot be used with builds started from cron jobs and such.

All server certificates are accepted.

Since:
0.7
Author:
Karl Gustafsson
See Also:
UsernamePasswordAuthenticationProvider
Task_package:
org.tmatesoft.svn

Field Summary
 
Fields inherited from interface org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider
ACCEPTED, ACCEPTED_TEMPORARY, REJECTED
 
Constructor Summary
PromptingAuthenticationProvider()
           
 
Method Summary
 int acceptServerAuthentication(SVNURL url, String realm, Object certificate, boolean resultMayBeStored)
           
 SVNAuthentication requestClientAuthentication(String kind, SVNURL url, String realm, SVNErrorMessage errorMsg, SVNAuthentication previousAuth, boolean authMayBeStored)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromptingAuthenticationProvider

public PromptingAuthenticationProvider()
Method Detail

acceptServerAuthentication

public int acceptServerAuthentication(SVNURL url,
                                      String realm,
                                      Object certificate,
                                      boolean resultMayBeStored)
Specified by:
acceptServerAuthentication in interface ISVNAuthenticationProvider
Returns:
ACCEPTED_TEMPORARY

requestClientAuthentication

public SVNAuthentication requestClientAuthentication(String kind,
                                                     SVNURL url,
                                                     String realm,
                                                     SVNErrorMessage errorMsg,
                                                     SVNAuthentication previousAuth,
                                                     boolean authMayBeStored)
Specified by:
requestClientAuthentication in interface ISVNAuthenticationProvider