Package javax.security.auth
Class SubjectDomainCombiner
java.lang.Object
javax.security.auth.SubjectDomainCombiner
- All Implemented Interfaces:
DomainCombiner
public class SubjectDomainCombiner extends Object implements DomainCombiner
Legacy security code; do not use.
-
Constructor Summary
Constructors Constructor Description SubjectDomainCombiner(Subject subject) -
Method Summary
Modifier and Type Method Description ProtectionDomain[]combine(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)Returns a combination of the two providedProtectionDomainarrays.SubjectgetSubject()
-
Constructor Details
-
SubjectDomainCombiner
-
-
Method Details
-
getSubject
-
combine
public ProtectionDomain[] combine(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)Description copied from interface:DomainCombinerReturns a combination of the two providedProtectionDomainarrays. Implementers can simply merge the two arrays into one, remove duplicates and perform other optimizations.- Specified by:
combinein interfaceDomainCombiner- Parameters:
currentDomains- the protection domains of the current execution threadassignedDomains- the protection domains of the parent thread, may benull.- Returns:
- a single
ProtectionDomainarray computed from the two provided arrays.
-