Valid 1Z0-899 Dumps shared by ExamDiscuss.com for Helping Passing 1Z0-899 Exam! ExamDiscuss.com now offer the newest 1Z0-899 exam dumps, the ExamDiscuss.com 1Z0-899 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1Z0-899 dumps with Test Engine here:
Which java code snippet checks whether the user is of the role "MANAGER" for a given HttpServRequest, httpServletRequest?
Correct Answer: A
Explanation/Reference: isUserInRole public boolean isUserInRole(java.lang.String role) Returns a boolean indicating whether the authenticated user is included in the specified logical "role". Roles and role membership can be defined using deployment descriptors. If the user has not been authenticated, the method returns false. Parameters: role - a String specifying the name of the role Returns: a boolean indicating whether the user making this request belongs to a given role; false if the user has not been authenticated Incorrect: Not B: isCallerInRole is depreciated.