Card 65 / 125: Which methods can be used to restrict method invocations in your EJBs to specific roles?
A)
getUserPrincipal()
B)
getCallerPrincipal()
C)
isUserInRole()
D)
isCallerInRole()
Answer:
B) getCallerPrincipal()
D) isCallerInRole()
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.