ExamQuestions.com

Register
Login
Java EE 7 Application Developer Exam Questions

Oracle

Java EE 7 Application Developer

33 / 72

Question 33:

How can a servlet indicate to the browser that cookie data should be sent over a secure connection? 

Answer options:

A. Call the getSecure(true) method on the cookie object.
B. Encrypt the cookie data. The browser automatically sends encrypted data over a secure connection.
C. Set the ENCRYPT header in the response.
D. Configure SessionTrackingMode.SSL on the ServletContext object.