1 |
/* DomainCombiner.java - Combines ProtectionDomains |
/* DomainCombiner.java -- Combines ProtectionDomains |
2 |
Copyright (C) 1999 Free Software Foundation, Inc. |
Copyright (C) 1999, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
38 |
package java.security; |
package java.security; |
39 |
|
|
40 |
/** |
/** |
41 |
A public interface used to combine two ProtectionDomains in a new |
* A public interface used to combine two ProtectionDomains in a new |
42 |
ProtectionDomain and update the current Protection Domains |
* ProtectionDomain and update the current Protection Domains |
43 |
associated with the current AccessControllerContext. |
* associated with the current AccessControlContext. |
44 |
|
* |
45 |
It can add, subtract, or update ProtectionDomains or possibly |
* It can add, subtract, or update ProtectionDomains or possibly |
46 |
remove duplicates or any possible complex action but just not add |
* remove duplicates or any possible complex action but just not add |
47 |
ones that do not already exist in either array. |
* ones that do not already exist in either array. |
48 |
|
* |
49 |
@since JDK 1.3 |
* @author Mark Benvenuto |
50 |
@author Mark Benvenuto |
* @see AccessControlContext |
51 |
|
* @see AccessController |
52 |
|
* @since 1.3 |
53 |
|
* @status updated to 1.4 |
54 |
*/ |
*/ |
55 |
public interface DomainCombiner |
public interface DomainCombiner |
56 |
{ |
{ |
57 |
/** |
/** |
58 |
Combines the current ProtectionDomains of the Thread with new |
* Combines the current ProtectionDomains of the Thread with new |
59 |
ProtectionDomains. |
* ProtectionDomains. |
60 |
|
* |
61 |
@param currentDomains - the ProtectionDomains for the current thread. |
* @param currentDomains - the ProtectionDomains for the current thread. |
62 |
@param assignedDomains - ProtectionsDomains to add |
* @param assignedDomains - ProtectionsDomains to add |
63 |
@returns a new array of all the ProtectionDomains |
* @return a new array of all the ProtectionDomains |
64 |
*/ |
*/ |
65 |
public ProtectionDomain[] combine(ProtectionDomain[]currentDomains, |
ProtectionDomain[] combine(ProtectionDomain[] currentDomains, |
66 |
ProtectionDomain[]assignedDomains); |
ProtectionDomain[] assignedDomains); |
67 |
} |
} // interface DomainCombiner |