APIdia Launch Partner
Top Description Methods
java.security

public Interface DomainCombiner

Known Direct Implementers
javax.security.auth.SubjectDomainCombiner
Annotations
@Deprecated
since:17
forRemoval:true

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.

DomainCombiner was used to dynamically update ProtectionDomains for access control operations and decisions. This feature no longer exists.
Since
1.3

Method Summary

Modifier and TypeMethod and Description
public ProtectionDomain[]

Returns:

a new array consisting of the updated ProtectionDomains, or null.
combine
(ProtectionDomain[]
the ProtectionDomains associated with the current execution thread. 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.
currentDomains
,
ProtectionDomain[]
an array of inherited ProtectionDomains. This parameter may be null if there are no inherited ProtectionDomains.
assignedDomains
)

Modify or update the provided ProtectionDomains.

Method Detail

combineback to summary
public ProtectionDomain[] combine(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)

Modify or update the provided ProtectionDomains. ProtectionDomains may be added to or removed from the given ProtectionDomains. The ProtectionDomains may be re-ordered. Individual ProtectionDomains may be modified (with a new set of Permissions, for example).

Parameters
currentDomains:ProtectionDomain[]

the ProtectionDomains associated with the current execution thread. 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.

assignedDomains:ProtectionDomain[]

an array of inherited ProtectionDomains. This parameter may be null if there are no inherited ProtectionDomains.

Returns:ProtectionDomain[]

a new array consisting of the updated ProtectionDomains, or null.