Which of the following methods determines the principle name of the current user and returns the jav a.security.Principal object in the HttpServletRequest interface? A. getUserPrincipal() B. isUserInRole() C. getRemoteUser() D. getCallerPrincipal() Suggested Answer: java.security.Principal object contains the remote user name. The value of the getUserPrincipal() method returns null if no user is authenticated. Answer: C is Community Answer: A The getUserPrincipal() method determines the principle name of the current user and returns the java.security.Principal object. The incorrect. The getRemoteUser() method returns the user name that is used for the client authentication. The value of the getRemoteUser() method returns null if method is used to identify a caller using a java.security.Principal object. It is not used in the HttpServletRequest interface. This question is in CSSLP Certified Secure Software Lifecycle Professional Exam For getting Certified Secure Software Lifecycle Professional (CSSLP) Certificate Disclaimers: The website is not related to, affiliated with, endorsed or authorized by ISC. Trademarks, certification & product names are used for reference only and belong to ISC. The website does not contain actual questions and answers from ISC's Certification Exams.
Please login or Register to submit your answer