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( )
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