Java Doc for ISVNAuthenticationProvider.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » auth » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tmatesoft.svn.core.auth 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider

All known Subclasses:   org.tmatesoft.svn.cli.SVNConsoleAuthenticationProvider,  org.tmatesoft.svn.core.javahl.JavaHLAuthenticationProvider,
ISVNAuthenticationProvider
public interface ISVNAuthenticationProvider (Code)
The ISVNAuthenticationProvider interface is implemented by user credentials providers. Such a provider is set to an authentication manager calling ISVNAuthenticationManager.setAuthenticationProvider(ISVNAuthenticationProvider) setAuthenticationProvider() . When a repository server pulls user's credentials, an SVNRepository driver asks the registered ISVNAuthenticationManager for credentials. The auth manager in its turn will ask the registered auth provider for credentials.

ISVNAuthenticationProvider may be implemented to keep a list of credentials, for example, there is such a default SVNKit implementation (that comes along with a default implementation of ISVNAuthenticationManager - org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager), that saves credentials in and retrieves them from the in-memory cache only during runtime (not on the disk); or the default one that uses the auth area cache (read the Subversion book chapter).
version:
   1.1.1
author:
   TMate Software Ltd.
See Also:   ISVNAuthenticationManager
See Also:   org.tmatesoft.svn.core.io.SVNRepository



Field Summary
public  intACCEPTED
     Denotes that a user credential is accepted by a server and will be cached on the disk.
public  intACCEPTED_TEMPORARY
     Denotes that a user credential is accepted by a server and will be cached only during runtime, not on the disk.
public  intREJECTED
     Denotes that a user credential is rejected by a server.


Method Summary
public  intacceptServerAuthentication(SVNURL url, String realm, Object certificate, boolean resultMayBeStored)
     Checks a server authentication certificate and whether accepts it (if the client trusts it) or not.
public  SVNAuthenticationrequestClientAuthentication(String kind, SVNURL url, String realm, SVNErrorMessage errorMessage, SVNAuthentication previousAuth, boolean authMayBeStored)
     Returns a next user credential of the specified kind for the given authentication realm.

Field Detail
ACCEPTED
public int ACCEPTED(Code)
Denotes that a user credential is accepted by a server and will be cached on the disk.



ACCEPTED_TEMPORARY
public int ACCEPTED_TEMPORARY(Code)
Denotes that a user credential is accepted by a server and will be cached only during runtime, not on the disk.



REJECTED
public int REJECTED(Code)
Denotes that a user credential is rejected by a server.





Method Detail
acceptServerAuthentication
public int acceptServerAuthentication(SVNURL url, String realm, Object certificate, boolean resultMayBeStored)(Code)
Checks a server authentication certificate and whether accepts it (if the client trusts it) or not.

This method is used by an SSL manager (see ISVNSSLManager ).
Parameters:
  url - a repository location that is accessed
Parameters:
  realm - a repository authentication realm (host, port, realm string)
Parameters:
  certificate - a server certificate object
Parameters:
  resultMayBeStored - if true then the server certificate can be cached, otherwise not the result of the certificate check (ISVNAuthenticationProvider.REJECTED, ISVNAuthenticationProvider.ACCEPTED_TEMPORARY, or ISVNAuthenticationProvider.ACCEPTED)




requestClientAuthentication
public SVNAuthentication requestClientAuthentication(String kind, SVNURL url, String realm, SVNErrorMessage errorMessage, SVNAuthentication previousAuth, boolean authMayBeStored)(Code)
Returns a next user credential of the specified kind for the given authentication realm.

If this provider has got more than one credentials (say, a list of credentials), to get the first one of them previousAuth is set to null.
Parameters:
  kind - a credential kind (for example, like those defined in ISVNAuthenticationManager)
Parameters:
  url - a repository location that is to be accessed
Parameters:
  realm - a repository authentication realm (host, port, realm string)
Parameters:
  errorMessage - the recent authentication failure error message
Parameters:
  previousAuth - the credential that was previously retrieved (to tell if it's not accepted)
Parameters:
  authMayBeStored - if true then the returned credential can be cached, otherwise it won't be cached anyway a next user credential




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.