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
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
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.
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
Get the authentication used during the authentication to the LDAP server
of this LDAP realm
authentication used during the authentication to the LDAP server
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
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
Set how referrals encountered by the service provider are to be processed
Parameters: referral - how referrals encountered by the service provider are tobe processed
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
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