org.objectweb.jonas.security.realm.factory.JResourceLDAP Class Reference

Inherits org.objectweb.jonas.security.realm.factory.JResource, and org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Inheritance diagram for org.objectweb.jonas.security.realm.factory.JResourceLDAP:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.security.realm.factory.JResourceLDAP:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JResourceLDAP () throws Exception
User findUser (String username) throws JResourceException
boolean isValidUser (User user, String credentials)
boolean isValidUserBind (User user, String credentials)
boolean isValidUserCompare (User user, String credentials)
ArrayList getArrayListCombinedRoles (User user) throws JResourceException
String toXML ()
String toString ()
Reference getReference () throws NamingException
void setInitialContextFactory (String initialContextFactory)
void setProviderUrl (String providerUrl)
void setSecurityAuthentication (String securityAuthentication)
void setSecurityPrincipal (String securityPrincipal)
void setSecurityCredentials (String securityCredentials)
void setSecurityProtocol (String securityProtocol)
void setLanguage (String language)
void setReferral (String referral)
void setStateFactories (String stateFactories)
void setAuthenticationMode (String authenticationMode)
void setUserPasswordAttribute (String userPasswordAttribute)
void setUserRolesAttribute (String userRolesAttribute)
void setRoleNameAttribute (String roleNameAttribute)
void setBaseDN (String baseDN)
void setUserDN (String userDN)
void setUserSearchFilter (String userSearchFilter)
void setRoleDN (String roleDN)
void setRoleSearchFilter (String roleSearchFilter)
void setAlgorithm (String algorithm)
String getInitialContextFactory ()
String getProviderUrl ()
String getSecurityAuthentication ()
String getSecurityPrincipal ()
String getSecurityCredentials ()
String getSecurityProtocol ()
String getLanguage ()
String getReferral ()
String getStateFactories ()
String getAuthenticationMode ()
String getUserPasswordAttribute ()
String getUserRolesAttribute ()
String getRoleNameAttribute ()
String getBaseDN ()
String getUserDN ()
String getUserSearchFilter ()
String getRoleDN ()
String getRoleSearchFilter ()
String getAlgorithm ()
void removeMBeans () throws JResourceException

Protected Member Functions

DirContext getDirContext () throws NamingException

Detailed Description

This class extends the JResource class for the LDAP implementation.
Author:
Florent Benoit

Emmanuel Rias (12/03 some improvements)

Definition at line 63 of file JResourceLDAP.java.


Constructor & Destructor Documentation

org.objectweb.jonas.security.realm.factory.JResourceLDAP.JResourceLDAP  )  throws Exception
 

Constructor : use the super constructor

Exceptions:
Exception if the super constructor fail

Definition at line 194 of file JResourceLDAP.java.


Member Function Documentation

User org.objectweb.jonas.security.realm.factory.JResourceLDAP.findUser String  username  )  throws JResourceException [virtual]
 

Check if a user is found and return it

Parameters:
username the wanted user name
Returns:
the user found or null
Exceptions:
JResourceException if there is a NamingException

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

Definition at line 204 of file JResourceLDAP.java.

References org.objectweb.jonas.security.realm.factory.JResourceLDAP.getDirContext(), org.objectweb.jonas.security.realm.factory.JResource.getLogger(), org.objectweb.jonas.security.realm.principals.LDAPUser.setDN(), org.objectweb.jonas.security.realm.principals.User.setName(), org.objectweb.jonas.security.realm.principals.User.setPassword(), and org.objectweb.jonas.security.realm.principals.User.setRoles().

Here is the call graph for this function:

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getAlgorithm  ) 
 

Get the default algorithm

Returns:
the default algorithm

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 1022 of file JResourceLDAP.java.

ArrayList org.objectweb.jonas.security.realm.factory.JResourceLDAP.getArrayListCombinedRoles User  user  )  throws JResourceException [virtual]
 

Get all the roles (from the roles and from the groups) of the given user

Parameters:
user the given user
Returns:
the array list of all the roles for a given user
Exceptions:
JResourceException if there is a naming exception

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

Definition at line 441 of file JResourceLDAP.java.

References org.objectweb.jonas.security.realm.principals.User.getArrayRoles(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getDirContext(), org.objectweb.jonas.security.realm.factory.JResource.getLogger(), and org.objectweb.jonas.security.realm.principals.User.setCombinedRoles().

Here is the call graph for this function:

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getAuthenticationMode  ) 
 

Get the mode for validate the authentication of this LDAP realm

Returns:
BIND_AUTHENTICATION_MODE or COMPARE_AUTHENTICATION_MODE

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 947 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getBaseDN  ) 
 

Get the DN used for the lookup of this LDAP realm

Returns:
baseDN DN used for the lookup

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 979 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

DirContext org.objectweb.jonas.security.realm.factory.JResourceLDAP.getDirContext  )  throws NamingException [protected]
 

Return a dircontext for this LDAP server

Returns:
a dircontext for this LDAP server
Exceptions:
NamingException if we can't retrieve a DirContext

Definition at line 1031 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.findUser(), and org.objectweb.jonas.security.realm.factory.JResourceLDAP.getArrayListCombinedRoles().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getInitialContextFactory  ) 
 

Return the initial context factory of this LDAP realm

Returns:
the initial context factory

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 873 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getLanguage  ) 
 

Get the preferred language to use with the service of this LDAP realm

Returns:
language preferred language to use with the service

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 922 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getProviderUrl  ) 
 

Get the Url of the ldap server of this LDAP realm

Returns:
Url of the ldap server

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 881 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

Reference org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference  )  throws NamingException [virtual]
 

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.

Returns:
the non-null Reference of the object.
Exceptions:
NamingException if a naming exception was encountered while retrieving the reference.

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

Definition at line 672 of file JResourceLDAP.java.

References org.objectweb.jonas.security.realm.factory.JResourceLDAP.getAuthenticationMode(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getBaseDN(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getInitialContextFactory(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getLanguage(), org.objectweb.jonas.security.realm.factory.JResource.getName(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getProviderUrl(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReferral(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getRoleDN(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getRoleNameAttribute(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getRoleSearchFilter(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getSecurityAuthentication(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getSecurityCredentials(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getSecurityPrincipal(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getSecurityProtocol(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getStateFactories(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getUserDN(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getUserPasswordAttribute(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.getUserRolesAttribute(), and org.objectweb.jonas.security.realm.factory.JResourceLDAP.getUserSearchFilter().

Here is the call graph for this function:

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReferral  ) 
 

Get how referrals encountered by the service provider are to be processed

Returns:
how referrals encountered by the service provider are to be processed

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 931 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getRoleDN  ) 
 

Get the DN used when searching the role DN. Override the baseDN if it is defined

Returns:
roleDN DN used when searching the role DN. Override the baseDN if it is defined

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 1006 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getRoleNameAttribute  ) 
 

Get the role name when performing a lookup on a role

Returns:
role name when performing a lookup on a role

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 971 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getRoleSearchFilter  ) 
 

Get the filter used when searching the role

Returns:
roleSearchFilter filter used when searching the role

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 1014 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getSecurityAuthentication  ) 
 

Get the authentication used during the authentication to the LDAP server of this LDAP realm

Returns:
authentication used during the authentication to the LDAP server

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 890 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getSecurityCredentials  ) 
 

Get the Credential(password) of the principal of this LDAP realm

Returns:
Credential(password) of the principal

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 906 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getSecurityPrincipal  ) 
 

Get the DN of the Principal(username) of this LDAP realm

Returns:
DN of the Principal(username)

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 898 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getSecurityProtocol  ) 
 

Get the security protocol to use of this LDAP realm

Returns:
security protocol to use

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 914 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getStateFactories  ) 
 

Get the the list of state factories of this LDAP realm

Returns:
list of state factories

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 939 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getUserDN  ) 
 

Get the DN used when searching the user DN. Override the baseDN if it is defined

Returns:
userDN DN used when searching the user DN

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 988 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getUserPasswordAttribute  ) 
 

Get the attribute in order to get the password of this LDAP realm

Returns:
attribute in order to get the password of this LDAP realm

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 955 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getUserRolesAttribute  ) 
 

Get the attribute in order to get the user role from the ldap server

Returns:
attribute in order to get the user role from the ldap server

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 963 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.getUserSearchFilter  ) 
 

Get the filter used when searching the user

Returns:
userSearchFilter filter used when searching the user

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 996 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.getReference().

boolean org.objectweb.jonas.security.realm.factory.JResourceLDAP.isValidUser User  user,
String  credentials
[virtual]
 

Check if the given user with the given credential is a valid user

Parameters:
user the given user
credentials credential of the user
Returns:
true if the user is valid

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

Definition at line 323 of file JResourceLDAP.java.

References org.objectweb.jonas.security.realm.factory.JResource.getLogger(), org.objectweb.jonas.security.realm.factory.JResourceLDAP.isValidUserBind(), and org.objectweb.jonas.security.realm.factory.JResourceLDAP.isValidUserCompare().

Here is the call graph for this function:

boolean org.objectweb.jonas.security.realm.factory.JResourceLDAP.isValidUserBind User  user,
String  credentials
 

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
credentials credential of the user
Returns:
true if the user is valid

Definition at line 358 of file JResourceLDAP.java.

References org.objectweb.jonas.security.realm.principals.LDAPUser.getDN(), and org.objectweb.jonas.security.realm.factory.JResource.getLogger().

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.isValidUser().

Here is the call graph for this function:

boolean org.objectweb.jonas.security.realm.factory.JResourceLDAP.isValidUserCompare User  user,
String  credentials
 

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
credentials credential of the user
Returns:
true if the user is valid

Definition at line 404 of file JResourceLDAP.java.

References org.objectweb.jonas.security.realm.principals.User.getHashPassword(), org.objectweb.jonas.security.realm.factory.JResource.getLogger(), org.objectweb.jonas.security.realm.principals.User.getPassword(), and org.objectweb.jonas.security.realm.principals.User.hashPassword.

Referenced by org.objectweb.jonas.security.realm.factory.JResourceLDAP.isValidUser().

Here is the call graph for this function:

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.removeMBeans  )  throws JResourceException [virtual]
 

Remove all the Mbeans used by this resource

Exceptions:
JResourceException if the MBeans can not be removed

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

Definition at line 1175 of file JResourceLDAP.java.

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setAlgorithm String  algorithm  ) 
 

Set the default algorithm to use

Parameters:
algorithm algorithm to be used

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 865 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setAuthenticationMode String  authenticationMode  ) 
 

Set the mode for validate the authentication of this LDAP realm

Parameters:
authenticationMode BIND_AUTHENTICATION_MODE or COMPARE_AUTHENTICATION_MODE

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 783 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setBaseDN String  baseDN  ) 
 

Set the DN used for the lookup of this LDAP realm

Parameters:
baseDN DN used for the lookup

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 817 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setInitialContextFactory String  initialContextFactory  ) 
 

Set the initial context factory of this LDAP realm

Parameters:
initialContextFactory the initial context factory

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 707 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setLanguage String  language  ) 
 

Set the preferred language to use with the service of this LDAP realm

Parameters:
language preferred language to use with the service

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 757 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setProviderUrl String  providerUrl  ) 
 

Set the Url of the ldap server of this LDAP realm

Parameters:
providerUrl Url of the ldap server

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 715 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setReferral String  referral  ) 
 

Set how referrals encountered by the service provider are to be processed

Parameters:
referral how referrals encountered by the service provider are to be processed

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 766 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setRoleDN String  roleDN  ) 
 

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 if it is defined

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 849 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setRoleNameAttribute String  roleNameAttribute  ) 
 

Set the role name when performing a lookup on a role

Parameters:
roleNameAttribute role name when performing a lookup on a role

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 809 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setRoleSearchFilter String  roleSearchFilter  ) 
 

Set the filter used when searching the role

Parameters:
roleSearchFilter filter used when searching the role

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 857 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setSecurityAuthentication String  securityAuthentication  ) 
 

Set the authentication used during the authentication to the LDAP server of this LDAP realm

Parameters:
securityAuthentication authentication used during the authentication to the LDAP server

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 725 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setSecurityCredentials String  securityCredentials  ) 
 

Set the Credential(password) of the principal of this LDAP realm

Parameters:
securityCredentials Credential(password) of the principal

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 741 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setSecurityPrincipal String  securityPrincipal  ) 
 

Set the DN of the Principal(username) of this LDAP realm

Parameters:
securityPrincipal DN of the Principal(username)

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 733 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setSecurityProtocol String  securityProtocol  ) 
 

Set the security protocol to use of this LDAP realm

Parameters:
securityProtocol security protocol to use

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 749 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setStateFactories String  stateFactories  ) 
 

Set the the list of state factories of this LDAP realm

Parameters:
stateFactories list of state factories

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 774 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setUserDN String  userDN  ) 
 

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

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 829 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setUserPasswordAttribute String  userPasswordAttribute  ) 
 

Set the attribute in order to get the password of this LDAP realm

Parameters:
userPasswordAttribute attribute in order to get the password of this LDAP realm

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 792 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setUserRolesAttribute String  userRolesAttribute  ) 
 

Set the attribute in order to get the user role from the ldap server

Parameters:
userRolesAttribute attribute in order to get the user role from the ldap server

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 801 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

void org.objectweb.jonas.security.realm.factory.JResourceLDAP.setUserSearchFilter String  userSearchFilter  ) 
 

Set the filter used when searching the user

Parameters:
userSearchFilter filter used when searching the user

Implements org.objectweb.jonas.security.realm.factory.JResourceLDAPMBean.

Definition at line 839 of file JResourceLDAP.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP(), and org.objectweb.jonas.security.realm.factory.JResourceLDAPFactory.getObjectInstance().

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.toString  ) 
 

The string representation of this object is an XML value

Returns:
the xml representation of this object

Definition at line 660 of file JResourceLDAP.java.

References org.objectweb.jonas.security.realm.principals.User.toXML().

Here is the call graph for this function:

String org.objectweb.jonas.security.realm.factory.JResourceLDAP.toXML  ) 
 

String representation of the LDAP realm

Returns:
the xml representation of the LDAP realm

Definition at line 548 of file JResourceLDAP.java.

References org.objectweb.jonas.security.realm.factory.JResource.getName(), and org.objectweb.jonas.security.realm.principals.User.toString().

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.addJResourceLDAP().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:49 2005 for JOnAS by  doxygen 1.3.9.1