public class

SubjectDomainCombiner

extends Object
implements DomainCombiner
java.lang.Object
   ↳ javax.security.auth.SubjectDomainCombiner

Class Overview

Legacy security code; do not use.

Summary

Public Constructors
SubjectDomainCombiner(Subject subject)
Public Methods
ProtectionDomain[] combine(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)
Returns a combination of the two provided ProtectionDomain arrays.
Subject getSubject()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.DomainCombiner

Public Constructors

public SubjectDomainCombiner (Subject subject)

Since: API Level 1

Public Methods

public ProtectionDomain[] combine (ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)

Since: API Level 1

Returns a combination of the two provided ProtectionDomain arrays. Implementers can simply merge the two arrays into one, remove duplicates and perform other optimizations.

Parameters
currentDomains the protection domains of the current execution thread
assignedDomains the protection domains of the parent thread, may be null.
Returns
  • a single ProtectionDomain array computed from the two provided arrays.

public Subject getSubject ()

Since: API Level 1