Java Doc for InternalPasswordCredentialInterceptor.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » security » spi » 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 » Portal » jetspeed 2.1.3 » org.apache.jetspeed.security.spi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor

All known Subclasses:   org.apache.jetspeed.security.spi.impl.InternalPasswordCredentialInterceptorsProxy,  org.apache.jetspeed.security.spi.impl.AbstractInternalPasswordCredentialInterceptorImpl,
InternalPasswordCredentialInterceptor
public interface InternalPasswordCredentialInterceptor (Code)

Callback component interface used by org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler DefaultCredentialHandler allowing injecting custom logic on certain events of the InternalCredential .


author:
   Ate Douma
version:
   $Id: InternalPasswordCredentialInterceptor.java 291016 2005-09-22 21:19:36Z ate $




Method Summary
 booleanafterAuthenticated(InternalUserPrincipal internalUser, String userName, InternalCredential credential, boolean authenticated)
    
 booleanafterLoad(PasswordCredentialProvider pcProvider, String userName, InternalCredential credential)
    
 voidbeforeCreate(InternalUserPrincipal internalUser, Collection credentials, String userName, InternalCredential credential, String password)
    
 voidbeforeSetPassword(InternalUserPrincipal internalUser, Collection credentials, String userName, InternalCredential credential, String password, boolean authenticated)
    

Invoked when a new password value is to be saved for a user.

The new password value is not yet set on the provided credential when this callback is invoked.




Method Detail
afterAuthenticated
boolean afterAuthenticated(InternalUserPrincipal internalUser, String userName, InternalCredential credential, boolean authenticated) throws SecurityException(Code)

Invoked during authentication after the provided password is compared against the one retrieved from the InternalCredential.

If true is returned, the credential is expected to be updated and its InternalCredential.isEnabled enabled and InternalCredential.isExpired expired flags will checked if the credential is (still) valid.

Note: the enabled and expired flags are only checked if this method returns true.

A thrown SecurityException will be passed on to the authentication requestor.


Parameters:
  internalUser - the user to which the credential belongs
Parameters:
  userName - the name of the principal to which the credential belongs
Parameters:
  credential - the credential of the user
Parameters:
  authenticated - true if the provided password matches the value of the credential true if the credential is updated
throws:
  SecurityException -
See Also:   org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler.authenticate(StringString)



afterLoad
boolean afterLoad(PasswordCredentialProvider pcProvider, String userName, InternalCredential credential) throws SecurityException(Code)

Invoked after a password credential is loaded from the persistent store.

If true is returned the credential is expected to be updated and its changes will be stored again.

A thrown SecurityException will be logged as an error and result in the credential to be ignored as if not existing (like for authentication).


Parameters:
  pcProvider - provides callback access to for instance the configured CredentialPasswordEncoder andCredentialPasswordValidator
Parameters:
  userName - the name of the principal to which the credential belongs
Parameters:
  credential - the credential just loaded from the persistent store true if the credential is updated
throws:
  SecurityException -
See Also:   org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler.getPasswordCredential(InternalUserPrincipalString)
See Also:   org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler.setPasswordExpiration(Stringjava.sql.Date)



beforeCreate
void beforeCreate(InternalUserPrincipal internalUser, Collection credentials, String userName, InternalCredential credential, String password) throws SecurityException(Code)

Invoked when the first password credential is to be saved for a user.

This callback method can be used to set default values like the InternalCredential.getExpirationDate expiration date .

A thrown SecurityException is passed on to the new password requestor.


Parameters:
  internalUser - the user to which the credential belongs
Parameters:
  credentials - the collection of credentials which will set on the user after (already contains the new credential)
Parameters:
  userName - the name of the principal to which the credential belongs
Parameters:
  credential - the credential of the user
Parameters:
  password - the new password value (already set on the new credential)
throws:
  SecurityException -
See Also:   org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler.setPassword(StringStringString)



beforeSetPassword
void beforeSetPassword(InternalUserPrincipal internalUser, Collection credentials, String userName, InternalCredential credential, String password, boolean authenticated) throws SecurityException(Code)

Invoked when a new password value is to be saved for a user.

The new password value is not yet set on the provided credential when this callback is invoked. This allows custom history maintenance and/or auditing to be performed.

The provided authenticated flag can be used to differentiate between a new password value set directly by a user itself or through an administrative interface.

After this callback is invoked, the specified password value will be set, as well as a reset of the InternalCredential.isUpdateRequired updateRequired flag, before the credential is saved.

A thrown SecurityException is passed on to the set password requestor.


Parameters:
  internalUser - the user to which the credential belongs
Parameters:
  credentials - the collection of credentials which will set on the user after (already contains the new credential)
Parameters:
  userName - the name of the principal to which the credential belongs
Parameters:
  credential - the credential of the user
Parameters:
  password - the new password value (already set on the new credential)
Parameters:
  authenticated - true if the new password value is provided by the user directly
throws:
  SecurityException -
See Also:   org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler.setPassword(StringStringString)



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