org.schmant.task.svnkit
Class PromptingAuthenticationProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PromptingAuthenticationProvider
public PromptingAuthenticationProvider()
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