Inside Java™ 2 Platform Security: Architecture, API Design, and Implementation, Second Edition
by Li Gong, Gary Ellison, Mary Dageforde
6.3. DomainCombiner
The DomainCombiner interface enables an extrinsic implementation class to augment and dynamically update the ProtectionDomains associated with the current AccessControlContext. This interface, along with the changes to AccessControlContext and AccessController, was added to Java 2 SDK, Standard Edition (J2SDK), 1.3, to support principal-based access control, which is described in greater detail in Section 8.4.7.
A DomainCombiner is passed as a parameter to the appropriate constructor for AccessControlContext, thus binding the implementation to the access control algorithm described in Section 6.4. The newly constructed context may then be passed to the AccessController.doPrivileged method to bind the provided context and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access