java.security

Interface DomainCombiner

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

UNKNOWN: updated to 1.4

Method Summary
ProtectionDomain[]combine(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)
Combines the current ProtectionDomains of the Thread with new ProtectionDomains.

Method Detail

combine

public 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