Add a user with a given principal and credential
Parameters: username - the name of the user Parameters: password - password of the user throws: Exception - if the user already exists
Check if a user is found and return it
Parameters: name - the wanted user name the user found or null throws: JResourceException - if there is an error during the search
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