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


org.apache.jetspeed.security.UserManager

All known Subclasses:   org.apache.jetspeed.security.impl.UserManagerImpl,
UserManager
public interface UserManager (Code)

Describes the interface for managing users and provides access to the User .


author:
   David Le Strat




Method Summary
 voidaddUser(String username, String password)
    

Add a new user provided a username and password.

 voidaddUser(String username, String password, String atnProviderName)
    

Add a new user provided a username and password in the specified authentication provider store.

 booleanauthenticate(String username, String password)
    

Authenticate a user.


Parameters:
  username - The user name.
Parameters:
  password - The user password.
 StringgetAnonymousUser()
    
 UsergetUser(String username)
    

Get a User for a given username.


Parameters:
  username - The username.
 IteratorgetUserNames(String filter)
    

An iterator of user names, finding users matching the corresponding filter criteria.

TODO Complete filter implementation.
Parameters:
  filter - The filter used to retrieve matching users.
 IteratorgetUsers(String filter)
    

An iterator of User finding users matching the corresponding filter criteria.

TODO Complete filter implementation.
Parameters:
  filter - The filter used to retrieve matching users.
 CollectiongetUsersInGroup(String groupFullPathName)
    

A collection of User for a specific group.


Parameters:
  groupFullPathName - The group name full path(e.g.
 CollectiongetUsersInRole(String roleFullPathName)
    

A collection of User for all the users in a specific role.


Parameters:
  roleFullPathName - The role name full path (e.g.theRoleName.theRoleNameChild).
 voidimportUser(String username, String password, boolean passThrough)
    
 voidimportUser(String username, String password, String atnProviderName, boolean passThrough)
    
 voidremoveUser(String username)
    

Remove a user.

 voidsetPassword(String username, String oldPassword, String newPassword)
    

Set the user password.

 voidsetPasswordEnabled(String userName, boolean enabled)
    

Set the enabled state of the user password credential.

 voidsetPasswordExpiration(String userName, Date expirationDate)
    
 voidsetPasswordUpdateRequired(String userName, boolean updateRequired)
    

Set the update required state of the user password credential.

 voidsetUserEnabled(String userName, boolean enabled)
     Enable or disable a user.
 booleanuserExists(String username)
    

Whether or not a user exists.


Parameters:
  username - The user name.



Method Detail
addUser
void addUser(String username, String password) throws SecurityException(Code)

Add a new user provided a username and password.


Parameters:
  username - The user name.
Parameters:
  password - The password.
throws:
  Throws - a security exception.



addUser
void addUser(String username, String password, String atnProviderName) throws SecurityException(Code)

Add a new user provided a username and password in the specified authentication provider store.


Parameters:
  username - The user name.
Parameters:
  password - The password.
Parameters:
  atnProviderName - The authentication provider name.
throws:
  Throws - a security exception.



authenticate
boolean authenticate(String username, String password)(Code)

Authenticate a user.


Parameters:
  username - The user name.
Parameters:
  password - The user password. Whether or not a user is authenticated.



getAnonymousUser
String getAnonymousUser()(Code)
the name of the anonymous user



getUser
User getUser(String username) throws SecurityException(Code)

Get a User for a given username.


Parameters:
  username - The username. The User.
throws:
  Throws - a security exception if the user cannot be found.



getUserNames
Iterator getUserNames(String filter) throws SecurityException(Code)

An iterator of user names, finding users matching the corresponding filter criteria.

TODO Complete filter implementation.
Parameters:
  filter - The filter used to retrieve matching users. The Iterator of User.



getUsers
Iterator getUsers(String filter) throws SecurityException(Code)

An iterator of User finding users matching the corresponding filter criteria.

TODO Complete filter implementation.
Parameters:
  filter - The filter used to retrieve matching users. The Iterator of User.



getUsersInGroup
Collection getUsersInGroup(String groupFullPathName) throws SecurityException(Code)

A collection of User for a specific group.


Parameters:
  groupFullPathName - The group name full path(e.g. theGroupName.theGroupChildName). A collection of User.
throws:
  Throws - security exception if the group does not exist.



getUsersInRole
Collection getUsersInRole(String roleFullPathName) throws SecurityException(Code)

A collection of User for all the users in a specific role.


Parameters:
  roleFullPathName - The role name full path (e.g.theRoleName.theRoleNameChild). A Collection of User.
throws:
  Throws - a security exception if the role does not exist.



importUser
void importUser(String username, String password, boolean passThrough) throws SecurityException(Code)

Import a new user with username and password and allow to bypass the enconding algorithm


Parameters:
  username - The user name.
Parameters:
  password - The password.
Parameters:
  passThrough - If true the provided password will not be validated/encoded
throws:
  Throws - a security exception.



importUser
void importUser(String username, String password, String atnProviderName, boolean passThrough) throws SecurityException(Code)

Import a new user with username and password in the specified authentication provider store and allow to bypass the enconding algorithm


Parameters:
  username - The user name.
Parameters:
  password - The password.
Parameters:
  atnProviderName - The authentication provider name.
Parameters:
  passThrough - If true the provided password will not be validated/encoded
throws:
  Throws - a security exception.



removeUser
void removeUser(String username) throws SecurityException(Code)

Remove a user. If there is a java.util.prefs.Preferences node for profile properties associated to this user, it will be removed as well.

java.security.Permission for this user will be removed as well.


Parameters:
  username - The user name.
throws:
  Throws - a security exception.



setPassword
void setPassword(String username, String oldPassword, String newPassword) throws SecurityException(Code)

Set the user password.


Parameters:
  username - The user name.
Parameters:
  oldPassword - The old password.
Parameters:
  newPassword - The new password.
throws:
  Throws - a security exception.



setPasswordEnabled
void setPasswordEnabled(String userName, boolean enabled) throws SecurityException(Code)

Set the enabled state of the user password credential.


Parameters:
  userName - The user name.
Parameters:
  enabled - The enabled state.
throws:
  Throws - a security exception.



setPasswordExpiration
void setPasswordExpiration(String userName, Date expirationDate) throws SecurityException(Code)

Set the expiration date and the expired flag of the password credential.

If a date equal or before the current date is provided, the expired flag will be set to true, otherwise to false.


Parameters:
  userName - The user name.
Parameters:
  expirationDate - The expiration date to set.
throws:
  Throws - a security exception.



setPasswordUpdateRequired
void setPasswordUpdateRequired(String userName, boolean updateRequired) throws SecurityException(Code)

Set the update required state of the user password credential.


Parameters:
  userName - The user name.
Parameters:
  updateRequired - The update required state.
throws:
  Throws - a security exception.



setUserEnabled
void setUserEnabled(String userName, boolean enabled) throws SecurityException(Code)
Enable or disable a user.
Parameters:
  userName - The user name
Parameters:
  enabled - enabled flag for the user



userExists
boolean userExists(String username)(Code)

Whether or not a user exists.


Parameters:
  username - The user name. Whether or not a user exists.



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