org.schmant.task.svnkit
Class UsernamePasswordAuthenticationProvider

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider
ACCEPTED, ACCEPTED_TEMPORARY, REJECTED
 
Constructor Summary
UsernamePasswordAuthenticationProvider(String username, char[] password)
           
UsernamePasswordAuthenticationProvider(String username, String password)
           
 
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

UsernamePasswordAuthenticationProvider

public UsernamePasswordAuthenticationProvider(String username,
                                              char[] password)

UsernamePasswordAuthenticationProvider

public UsernamePasswordAuthenticationProvider(String username,
                                              String password)
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