java.security
Interface DomainCombiner
- All Known Implementing Classes:
- SubjectDomainCombiner
public interface DomainCombiner
A public interface used to combine two ProtectionDomains in a new
ProtectionDomain and update the current Protection Domains
associated with the current AccessControlContext.
It can add, subtract, or update ProtectionDomains or possibly
remove duplicates or any possible complex action but just not add
ones that do not already exist in either array.
- Since:
- 1.3
- See Also:
AccessControlContext
,
AccessController
combine
ProtectionDomain[] combine(ProtectionDomain[] currentDomains,
ProtectionDomain[] assignedDomains)
- Combines the current ProtectionDomains of the Thread with new
ProtectionDomains.
- Parameters:
currentDomains
- - the ProtectionDomains for the current thread.assignedDomains
- - ProtectionsDomains to add
- Returns:
- a new array of all the ProtectionDomains