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 SQLException
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 it fails
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.
Check if the given credential is the right credential for the given user
Parameters: user - user to check its credentials Parameters: credentials - the given credentials true if the credential is valid for this user