Deprecated
for removal since 17.
This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private SubjectDomainCombiner. | |
| private static final Debug | |
| private Principal[] | |
| private Set | |
| private Subject |
| Access | Constructor and Description |
|---|---|
| public | SubjectDomainCombiner(Subject
the subject)Subject to be associated with
this SubjectDomainCombiner.Associate the provided |
| Modifier and Type | Method and Description |
|---|---|
| public ProtectionDomain[] | Returns: a new array consisting of the updated ProtectionDomains, ornull.the ProtectionDomains associated with the
current execution Thread.
The ProtectionDomains are listed in order of execution,
with the most recently executing currentDomains, ProtectionDomain[] ProtectionDomain
residing at the beginning of the array. This parameter may
be null if the current execution Thread
has no associated ProtectionDomains.the inherited ProtectionDomains.
This parameter may be assignedDomains)null
if there were no inherited ProtectionDomains.Implements java. Update the relevant ProtectionDomains with the Principals
from the |
| public Subject | Returns: theSubject associated with this
SubjectDomainCombiner, or null
if no Subject is associated with this
SubjectDomainCombiner.Get the |
| private static ProtectionDomain[] | |
| private static String | |
| private static void |
| cachedPDs | back to summary |
|---|---|
| private SubjectDomainCombiner. | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| principals | back to summary |
|---|---|
| private Principal[] principals | |
| principalSet | back to summary |
|---|---|
| private Set<Principal> principalSet | |
| subject | back to summary |
|---|---|
| private Subject subject | |
| SubjectDomainCombiner | back to summary |
|---|---|
| public SubjectDomainCombiner(Subject subject) Associate the provided
| |
| combine | back to summary |
|---|---|
| public ProtectionDomain[] combine(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains) Implements java. Update the relevant ProtectionDomains with the Principals
from the A new All of the ProtectionDomains (static and newly instantiated) are
combined into a new array. The ProtectionDomains from the
Note that optimizations such as the removal of duplicate ProtectionDomains may have occurred. In addition, caching of ProtectionDomains may be permitted.
| |
| getSubject | back to summary |
|---|---|
| public Subject getSubject() Get the
| |
| optimize | back to summary |
|---|---|
| private static ProtectionDomain[] optimize(ProtectionDomain[] domains) | |
| printDomain | back to summary |
|---|---|
| private static String printDomain(final ProtectionDomain pd) | |
| printInputDomains | back to summary |
|---|---|
| private static void printInputDomains(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public V | |
| public V |
| WeakKeyValueMap | back to summary |
|---|---|
| private WeakKeyValueMap() | |
| getValue | back to summary |
|---|---|
| public V getValue(K key) | |
| putValue | back to summary |
|---|---|
| public V putValue(K key, V value) | |