Card 73 / 125: Which methods can be used to restrict method invocations in your web application to specific roles?
A)
getUserPrincipal()
B)
isUserInRole()
C)
getCallerPrincipal()
D)
isCallerInRole()
Answer:
A) getUserPrincipal()
B) isUserInRole()
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
getUserPrincipal() and isUserInRole() are defined in HttpServletRequest to set method permissions in web components.
|
Oracle Certified Java Enterprise Architect
Author:
JavaChamp TeamSenior Java Developer
QuizOver.com
Germany
Access: |