Name
DomainCombiner
Synopsis
This interface defines a single
combine( )
method that combines two
arrays of ProtectionDomain
objects into a single
equivalent (and perhaps optimized) array. You can associate a
DomainCombiner
with an existing
AccessControlContext
by calling the two-argument
AccessControlContext( )
constructor. Then, when
the checkPermission( )
method of the
AccessControlContext
is called or when the
AccessControlContext
is passed to a
doPrivileged( )
method of
AccessController
, the specified
DomainCombiner
merges the protection domains of
the current stack frame with the protection domains encapsulated in
the AccessControlContext
. This class is used only
by system-level code; typical applications rarely need to use it.
public interface DomainCombiner { // Public Instance Methods ProtectionDomain[ ] combine(ProtectionDomain[ ] currentDomains, ProtectionDomain[ ] assignedDomains); }
Implementations
javax.security.auth.SubjectDomainCombiner
Passed To
AccessControlContext.AccessControlContext( )
Returned By
AccessControlContext.getDomainCombiner( )
Get Java in a Nutshell, 5th 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.