org.schmant.task.svnkit
Class UsernamePasswordAuthenticationProvider
java.lang.Object
org.schmant.task.svnkit.UsernamePasswordAuthenticationProvider
- All Implemented Interfaces:
- ISVNAuthenticationProvider
public class UsernamePasswordAuthenticationProvider
- extends Object
- implements ISVNAuthenticationProvider
Simple Subversion authentication provider that uses a preconfigured username
and password.
All server certificates are accepted.
- Since:
- 0.7
- Author:
- Karl Gustafsson
- See Also:
PromptingAuthenticationProvider
- Task_package:
- org.tmatesoft.svn
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UsernamePasswordAuthenticationProvider
public UsernamePasswordAuthenticationProvider(String username,
char[] password)
UsernamePasswordAuthenticationProvider
public UsernamePasswordAuthenticationProvider(String username,
String password)
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