ExamQuestions.com

Register
Login
Java EE 7 Application Developer Exam Questions

Oracle

Java EE 7 Application Developer

31 / 72

Question 31:

Given an HttpServletRequest request and an EJB SessionContext ctx. Which is a valid way to retrieve the Principal invoking either behavior? 

Answer options:

A. request.getCallerPrincipal() and ctx.getCallerPrincipal()
B. request.getUserPrincipal() and ctx.getUserPrincipal()
C. request.getCallerPrincipal() and ctx.getUserPrincipal()
D. request.getUserPrincipal() and ctx.getCallerPrincipal()