GIAC Secure Software Programmer – Java GSSP-Java Question # 3 Topic 1 Discussion

GIAC Secure Software Programmer – Java GSSP-Java Question # 3 Topic 1 Discussion

GSSP-Java Exam Topic 1 Question 3 Discussion:
Question #: 3
Topic #: 1

Which of the following statements are true about the doAs() and doAsPrivileged() methods?

Each correct answer represents a complete solution. Choose all that apply.


A.

The doAsPrivileged() method invokes AccessController.doPrivileged by passing it the provided PrivilegedAction.


B.

The doAs() and doAsPrivileged() methods perform privileged work as a particular Subject.


C.

The doAs() method retrieves the current Thread's AccessControlContext via

AccessController.getContext.


D.

The doAsPrivileged() method, instead of retrieving the current Thread's AccessControlContext, uses the provided AccessControlContext.


Get Premium GSSP-Java Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.