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 ...

Get Inside Java™ 2 Platform Security: Architecture, API Design, and Implementation, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.