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


java.lang.Object
   org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao

All known Subclasses:   org.apache.jetspeed.security.spi.impl.ldap.LdapUserCredentialDaoImpl,  org.apache.jetspeed.security.spi.impl.ldap.LdapPrincipalDaoImpl,  org.apache.jetspeed.security.spi.impl.ldap.InitLdapSchema,
AbstractLdapDao
abstract public class AbstractLdapDao (Code)

Abstract ldap dao.


author:
   Mike Long , author:
   href="mailto:dlestrat@apache.org">David Le Strat


Field Summary
protected  LdapContextctx
    

Constructor Summary
public  AbstractLdapDao()
    

Default constructor.

public  AbstractLdapDao(LdapBindingConfig ldapConfig)
    

Initializes the dao.


Method Summary
protected  voidbindToServer(String rootDn, String rootPassword)
    

Binds to the ldap server.

abstract protected  String[]getAttributes()
    
abstract protected  StringgetEntryPrefix()
    

A template method that returns the LDAP entry prefix of the concrete DAO.

protected  String[]getGroupAttributes()
    
protected  StringgetGroupFilter()
    

Returns the default Group suffix dn.

protected  StringgetGroupFilterBase()
    

Returns the default Group suffix dn.

protected  StringgetGroupIdAttribute()
    
protected  StringgetGroupMembershipAttribute()
    
protected  StringgetGroupMembershipForRoleAttribute()
    
protected  String[]getGroupObjectClasses()
    

Returns the default Group suffix dn.

protected  StringgetGroupObjectRequiredAttributeClasses()
    
protected  StringgetGroupUidAttribute()
    
protected  String[]getKnownAttributes()
    
abstract protected  String[]getObjectClasses()
    
protected  String[]getRoleAttributes()
    
protected  StringgetRoleFilter()
    

Returns the default Group suffix dn.

protected  StringgetRoleFilterBase()
    

Returns the default Group suffix dn.

protected  StringgetRoleGroupMembershipForRoleAttribute()
    
protected  StringgetRoleIdAttribute()
    
protected  StringgetRoleMembershipAttribute()
    
protected  String[]getRoleObjectClasses()
    

Returns the default Group suffix dn.

protected  StringgetRoleObjectRequiredAttributeClasses()
    
protected  StringgetRoleUidAttribute()
    
protected  StringgetRootContext()
    

Returns the root context.

abstract protected  StringgetSearchDomain()
    
protected  intgetSearchScope()
    
abstract protected  StringgetSearchSuffix()
    

A template method that returns the LDAP entry prefix of the concrete DAO.

protected  StringgetSubcontextName(String dn)
    

Gets the sub context name.


Parameters:
  dn - The domain name.
protected  StringgetUidAttribute()
    
protected  String[]getUserAttributes()
    
protected  StringgetUserFilter()
    
protected  StringgetUserFilterBase()
    

Returns the default Group suffix dn.

protected  StringgetUserGroupMembershipAttribute()
    
protected  StringgetUserIdAttribute()
    
protected  String[]getUserObjectClasses()
    
protected  StringgetUserPasswordAttribute()
    
protected  StringgetUserRoleMembershipAttribute()
    
protected  StringgetUserUidAttribute()
    
public  StringlookupByUid(String uid)
    

Searches the LDAP server for the user with the specified userid (uid attribute).

protected  NamingEnumerationsearchByWildcardedUid(String filter, SearchControls cons)
    

Search uid by wild card.

protected  NamingEnumerationsearchGroupByWildcardedUid(String filter, SearchControls cons)
    

Search uid by wild card.

protected  NamingEnumerationsearchRoleByWildcardedUid(String filter, SearchControls cons)
    

Search uid by wild card.

protected  SearchControlssetSearchControls()
    
protected  voidvalidateDn(String dn)
    

Validate the domain name.

protected  voidvalidatePassword(String password)
    

Valiate the users password.

protected  voidvalidateUid(String uid)
    

Validate the uid.


Field Detail
ctx
protected LdapContext ctx(Code)
Reference to remote server context




Constructor Detail
AbstractLdapDao
public AbstractLdapDao()(Code)

Default constructor.




AbstractLdapDao
public AbstractLdapDao(LdapBindingConfig ldapConfig) throws SecurityException(Code)

Initializes the dao.


Parameters:
  ldapConfig - Holds the ldap configuration.
throws:
  SecurityException -




Method Detail
bindToServer
protected void bindToServer(String rootDn, String rootPassword) throws SecurityException(Code)

Binds to the ldap server.


Parameters:
  rootDn -
Parameters:
  rootPassword -
throws:
  SecurityException -



getAttributes
abstract protected String[] getAttributes()(Code)



getEntryPrefix
abstract protected String getEntryPrefix()(Code)

A template method that returns the LDAP entry prefix of the concrete DAO.

TODO : this should be in spring config a String containing the LDAP entry prefix name.



getGroupAttributes
protected String[] getGroupAttributes()(Code)



getGroupFilter
protected String getGroupFilter()(Code)

Returns the default Group suffix dn.

The defaultDnSuffix.



getGroupFilterBase
protected String getGroupFilterBase()(Code)

Returns the default Group suffix dn.

The defaultDnSuffix.



getGroupIdAttribute
protected String getGroupIdAttribute()(Code)



getGroupMembershipAttribute
protected String getGroupMembershipAttribute()(Code)



getGroupMembershipForRoleAttribute
protected String getGroupMembershipForRoleAttribute()(Code)



getGroupObjectClasses
protected String[] getGroupObjectClasses()(Code)

Returns the default Group suffix dn.

The defaultDnSuffix.



getGroupObjectRequiredAttributeClasses
protected String getGroupObjectRequiredAttributeClasses()(Code)



getGroupUidAttribute
protected String getGroupUidAttribute()(Code)



getKnownAttributes
protected String[] getKnownAttributes()(Code)



getObjectClasses
abstract protected String[] getObjectClasses()(Code)



getRoleAttributes
protected String[] getRoleAttributes()(Code)



getRoleFilter
protected String getRoleFilter()(Code)

Returns the default Group suffix dn.

The defaultDnSuffix.



getRoleFilterBase
protected String getRoleFilterBase()(Code)

Returns the default Group suffix dn.

The defaultDnSuffix.



getRoleGroupMembershipForRoleAttribute
protected String getRoleGroupMembershipForRoleAttribute()(Code)



getRoleIdAttribute
protected String getRoleIdAttribute()(Code)



getRoleMembershipAttribute
protected String getRoleMembershipAttribute()(Code)



getRoleObjectClasses
protected String[] getRoleObjectClasses()(Code)

Returns the default Group suffix dn.

The defaultDnSuffix.



getRoleObjectRequiredAttributeClasses
protected String getRoleObjectRequiredAttributeClasses()(Code)



getRoleUidAttribute
protected String getRoleUidAttribute()(Code)



getRootContext
protected String getRootContext()(Code)

Returns the root context.

The root context.



getSearchDomain
abstract protected String getSearchDomain()(Code)

The domain in wich to perform a search

TODO : this should be in spring config a String containing the LDAP entry prefix name.



getSearchScope
protected int getSearchScope()(Code)



getSearchSuffix
abstract protected String getSearchSuffix()(Code)

A template method that returns the LDAP entry prefix of the concrete DAO.

TODO : this should be in spring config a String containing the LDAP entry prefix name.



getSubcontextName
protected String getSubcontextName(String dn) throws NamingException(Code)

Gets the sub context name.


Parameters:
  dn - The domain name. The sub context name.
throws:
  NamingException -



getUidAttribute
protected String getUidAttribute()(Code)



getUserAttributes
protected String[] getUserAttributes()(Code)



getUserFilter
protected String getUserFilter()(Code)



getUserFilterBase
protected String getUserFilterBase()(Code)

Returns the default Group suffix dn.

The defaultDnSuffix.



getUserGroupMembershipAttribute
protected String getUserGroupMembershipAttribute()(Code)



getUserIdAttribute
protected String getUserIdAttribute()(Code)



getUserObjectClasses
protected String[] getUserObjectClasses()(Code)



getUserPasswordAttribute
protected String getUserPasswordAttribute()(Code)



getUserRoleMembershipAttribute
protected String getUserRoleMembershipAttribute()(Code)



getUserUidAttribute
protected String getUserUidAttribute()(Code)



lookupByUid
public String lookupByUid(String uid) throws SecurityException(Code)

Searches the LDAP server for the user with the specified userid (uid attribute).

the user's DN



searchByWildcardedUid
protected NamingEnumeration searchByWildcardedUid(String filter, SearchControls cons) throws NamingException(Code)

Search uid by wild card.


Parameters:
  filter - The filter.
Parameters:
  cons - The SearchControls The NamingEnumeration
throws:
  NamingException - Throws a NamingEnumeration.



searchGroupByWildcardedUid
protected NamingEnumeration searchGroupByWildcardedUid(String filter, SearchControls cons) throws NamingException(Code)

Search uid by wild card.


Parameters:
  filter - The filter.
Parameters:
  cons - The SearchControls The NamingEnumeration
throws:
  NamingException - Throws a NamingEnumeration.



searchRoleByWildcardedUid
protected NamingEnumeration searchRoleByWildcardedUid(String filter, SearchControls cons) throws NamingException(Code)

Search uid by wild card.


Parameters:
  filter - The filter.
Parameters:
  cons - The SearchControls The NamingEnumeration
throws:
  NamingException - Throws a NamingEnumeration.



setSearchControls
protected SearchControls setSearchControls()(Code)
The factors that determine the scope of the search and what gets returned as a resultof the search.



validateDn
protected void validateDn(String dn) throws SecurityException(Code)

Validate the domain name.


Parameters:
  dn - The domain name.



validatePassword
protected void validatePassword(String password) throws SecurityException(Code)

Valiate the users password.


Parameters:
  password - The user.



validateUid
protected void validateUid(String uid) throws SecurityException(Code)

Validate the uid.


Parameters:
  uid - The uid.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w___ww___.j_a__v_a2__s.c___om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.