Java Doc for JResourceLDAP.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » security » realm » factory » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.security.realm.factory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.security.realm.factory.JResource
   org.objectweb.jonas.security.realm.factory.JResourceLDAP

JResourceLDAP
public class JResourceLDAP extends JResource implements JResourceLDAPMBean(Code)
This class extends the JResource class for the LDAP implementation.
author:
   Florent Benoit
author:
   Emmanuel Rias (12/03 some improvements)



Constructor Summary
public  JResourceLDAP()
    

Method Summary
public  UserfindUser(String username)
    
public  StringgetAlgorithm()
    
public  ArrayListgetArrayListCombinedRoles(User user)
    
public  StringgetAuthenticationMode()
    
public  StringgetBaseDN()
    
protected  DirContextgetDirContext()
    
public  StringgetInitialContextFactory()
    
public  StringgetLanguage()
    
public  StringgetProviderUrl()
    
public  ReferencegetReference()
     Retrieves the Reference of the object.
public  StringgetReferral()
    
public  StringgetRoleDN()
     Get the DN used when searching the role DN.
public  StringgetRoleNameAttribute()
    
public  StringgetRoleSearchFilter()
    
public  StringgetSecurityAuthentication()
    
public  StringgetSecurityCredentials()
    
public  StringgetSecurityPrincipal()
    
public  StringgetSecurityProtocol()
    
public  StringgetStateFactories()
    
public  StringgetUserDN()
     Get the DN used when searching the user DN.
public  StringgetUserPasswordAttribute()
    
public  StringgetUserRolesAttribute()
    
public  StringgetUserSearchFilter()
    
public  booleanisValidUser(User user, String credentials)
    
public  booleanisValidUserBind(User user, String credentials)
     Check if the given user with the given credential is a valid user.
public  booleanisValidUserCompare(User user, String credentials)
     Check if the given user with the given credential is a valid user.
public  voidremoveMBeans()
    
public  voidsetAlgorithm(String algorithm)
    
public  voidsetAuthenticationMode(String authenticationMode)
    
public  voidsetBaseDN(String baseDN)
    
public  voidsetInitialContextFactory(String initialContextFactory)
    
public  voidsetLanguage(String language)
    
public  voidsetProviderUrl(String providerUrl)
    
public  voidsetReferral(String referral)
    
public  voidsetRoleDN(String roleDN)
     Set the DN used when searching the role DN.
public  voidsetRoleNameAttribute(String roleNameAttribute)
    
public  voidsetRoleSearchFilter(String roleSearchFilter)
    
public  voidsetSecurityAuthentication(String securityAuthentication)
    
public  voidsetSecurityCredentials(String securityCredentials)
    
public  voidsetSecurityPrincipal(String securityPrincipal)
    
public  voidsetSecurityProtocol(String securityProtocol)
    
public  voidsetStateFactories(String stateFactories)
    
public  voidsetUserDN(String userDN)
     Set the DN used when searching the user DN.
public  voidsetUserPasswordAttribute(String userPasswordAttribute)
    
public  voidsetUserRolesAttribute(String userRolesAttribute)
    
public  voidsetUserSearchFilter(String userSearchFilter)
    
public  StringtoString()
    
public  StringtoXML()
    


Constructor Detail
JResourceLDAP
public JResourceLDAP() throws Exception(Code)
Constructor : use the super constructor
throws:
  Exception - if the super constructor fail




Method Detail
findUser
public User findUser(String username) throws JResourceException(Code)
Check if a user is found and return it
Parameters:
  username - the wanted user name the user found or null
throws:
  JResourceException - if there is a NamingException



getAlgorithm
public String getAlgorithm()(Code)
Get the default algorithm the default algorithm



getArrayListCombinedRoles
public ArrayList getArrayListCombinedRoles(User user) throws JResourceException(Code)
Get all the roles (from the roles and from the groups) of the given user
Parameters:
  user - the given user the array list of all the roles for a given user
throws:
  JResourceException - if there is a naming exception



getAuthenticationMode
public String getAuthenticationMode()(Code)
Get the mode for validate the authentication of this LDAP realm BIND_AUTHENTICATION_MODE or COMPARE_AUTHENTICATION_MODE



getBaseDN
public String getBaseDN()(Code)
Get the DN used for the lookup of this LDAP realm baseDN DN used for the lookup



getDirContext
protected DirContext getDirContext() throws NamingException(Code)
Return a dircontext for this LDAP server a dircontext for this LDAP server
throws:
  NamingException - if we can't retrieve a DirContext



getInitialContextFactory
public String getInitialContextFactory()(Code)
Return the initial context factory of this LDAP realm the initial context factory



getLanguage
public String getLanguage()(Code)
Get the preferred language to use with the service of this LDAP realm language preferred language to use with the service



getProviderUrl
public String getProviderUrl()(Code)
Get the Url of the ldap server of this LDAP realm Url of the ldap server



getReference
public Reference getReference() throws NamingException(Code)
Retrieves the Reference of the object. The Reference contains the factory used to create this object and the optional parameters used to configure the factory. the non-null Reference of the object.
throws:
  NamingException - if a naming exception was encountered whileretrieving the reference.



getReferral
public String getReferral()(Code)
Get how referrals encountered by the service provider are to be processed how referrals encountered by the service provider are to beprocessed



getRoleDN
public String getRoleDN()(Code)
Get the DN used when searching the role DN. Override the baseDN if it is defined roleDN DN used when searching the role DN. Override the baseDN ifit is defined



getRoleNameAttribute
public String getRoleNameAttribute()(Code)
Get the role name when performing a lookup on a role role name when performing a lookup on a role



getRoleSearchFilter
public String getRoleSearchFilter()(Code)
Get the filter used when searching the role roleSearchFilter filter used when searching the role



getSecurityAuthentication
public String getSecurityAuthentication()(Code)
Get the authentication used during the authentication to the LDAP server of this LDAP realm authentication used during the authentication to the LDAP server



getSecurityCredentials
public String getSecurityCredentials()(Code)
Get the Credential(password) of the principal of this LDAP realm Credential(password) of the principal



getSecurityPrincipal
public String getSecurityPrincipal()(Code)
Get the DN of the Principal(username) of this LDAP realm DN of the Principal(username)



getSecurityProtocol
public String getSecurityProtocol()(Code)
Get the security protocol to use of this LDAP realm security protocol to use



getStateFactories
public String getStateFactories()(Code)
Get the the list of state factories of this LDAP realm list of state factories



getUserDN
public String getUserDN()(Code)
Get the DN used when searching the user DN. Override the baseDN if it is defined userDN DN used when searching the user DN



getUserPasswordAttribute
public String getUserPasswordAttribute()(Code)
Get the attribute in order to get the password of this LDAP realm attribute in order to get the password of this LDAP realm



getUserRolesAttribute
public String getUserRolesAttribute()(Code)
Get the attribute in order to get the user role from the ldap server attribute in order to get the user role from the ldap server



getUserSearchFilter
public String getUserSearchFilter()(Code)
Get the filter used when searching the user userSearchFilter filter used when searching the user



isValidUser
public boolean isValidUser(User user, String credentials)(Code)
Check if the given user with the given credential is a valid user
Parameters:
  user - the given user
Parameters:
  credentials - credential of the user true if the user is valid



isValidUserBind
public boolean isValidUserBind(User user, String credentials)(Code)
Check if the given user with the given credential is a valid user. Check is done by binding to the LDAP server with the specific principal/credential.
Parameters:
  user - the given user
Parameters:
  credentials - credential of the user true if the user is valid



isValidUserCompare
public boolean isValidUserCompare(User user, String credentials)(Code)
Check if the given user with the given credential is a valid user. Check is done by comparing the given credential with the credential which is retrieved from the LDAP server.
Parameters:
  user - the given user
Parameters:
  credentials - credential of the user true if the user is valid



removeMBeans
public void removeMBeans() throws JResourceException(Code)
Remove all the Mbeans used by this resource
throws:
  JResourceException - if the MBeans can not be removed



setAlgorithm
public void setAlgorithm(String algorithm)(Code)
Set the default algorithm to use
Parameters:
  algorithm - algorithm to be used



setAuthenticationMode
public void setAuthenticationMode(String authenticationMode)(Code)
Set the mode for validate the authentication of this LDAP realm
Parameters:
  authenticationMode - BIND_AUTHENTICATION_MODE orCOMPARE_AUTHENTICATION_MODE



setBaseDN
public void setBaseDN(String baseDN)(Code)
Set the DN used for the lookup of this LDAP realm
Parameters:
  baseDN - DN used for the lookup



setInitialContextFactory
public void setInitialContextFactory(String initialContextFactory)(Code)
Set the initial context factory of this LDAP realm
Parameters:
  initialContextFactory - the initial context factory



setLanguage
public void setLanguage(String language)(Code)
Set the preferred language to use with the service of this LDAP realm
Parameters:
  language - preferred language to use with the service



setProviderUrl
public void setProviderUrl(String providerUrl)(Code)
Set the Url of the ldap server of this LDAP realm
Parameters:
  providerUrl - Url of the ldap server



setReferral
public void setReferral(String referral)(Code)
Set how referrals encountered by the service provider are to be processed
Parameters:
  referral - how referrals encountered by the service provider are tobe processed



setRoleDN
public void setRoleDN(String roleDN)(Code)
Set the DN used when searching the role DN. Override the baseDN if it is defined
Parameters:
  roleDN - DN used when searching the role DN. Override the baseDN ifit is defined



setRoleNameAttribute
public void setRoleNameAttribute(String roleNameAttribute)(Code)
Set the role name when performing a lookup on a role
Parameters:
  roleNameAttribute - role name when performing a lookup on a role



setRoleSearchFilter
public void setRoleSearchFilter(String roleSearchFilter)(Code)
Set the filter used when searching the role
Parameters:
  roleSearchFilter - filter used when searching the role



setSecurityAuthentication
public void setSecurityAuthentication(String securityAuthentication)(Code)
Set the authentication used during the authentication to the LDAP server of this LDAP realm
Parameters:
  securityAuthentication - authentication used during theauthentication to the LDAP server



setSecurityCredentials
public void setSecurityCredentials(String securityCredentials)(Code)
Set the Credential(password) of the principal of this LDAP realm
Parameters:
  securityCredentials - Credential(password) of the principal



setSecurityPrincipal
public void setSecurityPrincipal(String securityPrincipal)(Code)
Set the DN of the Principal(username) of this LDAP realm
Parameters:
  securityPrincipal - DN of the Principal(username)



setSecurityProtocol
public void setSecurityProtocol(String securityProtocol)(Code)
Set the security protocol to use of this LDAP realm
Parameters:
  securityProtocol - security protocol to use



setStateFactories
public void setStateFactories(String stateFactories)(Code)
Set the the list of state factories of this LDAP realm
Parameters:
  stateFactories - list of state factories



setUserDN
public void setUserDN(String userDN)(Code)
Set the DN used when searching the user DN. Override the baseDN if it is defined
Parameters:
  userDN - DN used when searching the user DN



setUserPasswordAttribute
public void setUserPasswordAttribute(String userPasswordAttribute)(Code)
Set the attribute in order to get the password of this LDAP realm
Parameters:
  userPasswordAttribute - attribute in order to get the password ofthis LDAP realm



setUserRolesAttribute
public void setUserRolesAttribute(String userRolesAttribute)(Code)
Set the attribute in order to get the user role from the ldap server
Parameters:
  userRolesAttribute - attribute in order to get the user role fromthe ldap server



setUserSearchFilter
public void setUserSearchFilter(String userSearchFilter)(Code)
Set the filter used when searching the user
Parameters:
  userSearchFilter - filter used when searching the user



toString
public String toString()(Code)
The string representation of this object is an XML value the xml representation of this object



toXML
public String toXML()(Code)
String representation of the LDAP realm the xml representation of the LDAP realm



Methods inherited from org.objectweb.jonas.security.realm.factory.JResource
public void clearCache()(Code)(Java Doc)
abstract public User findUser(String name) throws JResourceException(Code)(Java Doc)
abstract public ArrayList getArrayListCombinedRoles(User user) throws JResourceException(Code)(Java Doc)
public static Logger getLogger()(Code)(Java Doc)
protected MBeanServer getMBeanServer()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
abstract public Reference getReference() throws NamingException(Code)(Java Doc)
protected long getSequenceNumber()(Code)(Java Doc)
public Hashtable getUsers()(Code)(Java Doc)
abstract public boolean isValidUser(User user, String credentials)(Code)(Java Doc)
abstract public void removeMBeans() throws JResourceException(Code)(Java Doc)
public void saveConfig()(Code)(Java Doc)
public static void setLogger(Logger logger)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setUsers(Hashtable users)(Code)(Java Doc)

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