Deprecated
for removal since 17.
This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release. Consequently, this class is also deprecated and subject to removal. There is no replacement for the Security Manager or this class.
SubjectDomainCombiner
updates ProtectionDomains
with Principals from the Subject
associated with this
SubjectDomainCombiner
.
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, up to the most recent
privileged currentDomains, ProtectionDomain[] ProtectionDomain .
The ProtectionDomains are listed in order of execution,
with the most recently executing ProtectionDomain
residing at the beginning of the array. This parameter may
be null if the current execution Thread
has no associated ProtectionDomains.the ProtectionDomains inherited from the
parent Thread, or the ProtectionDomains from the
privileged assignedDomains)context , if a call to
AccessController.doPrivileged(..., context)
had occurred This parameter may be null
if there were no ProtectionDomains inherited from the
parent Thread, or from the privileged context .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) |