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 Details

    • SubjectDomainCombiner

      public SubjectDomainCombiner​(Subject subject)
  • Method Details

    • getSubject

      public Subject getSubject()
    • combine

      public ProtectionDomain[] combine​(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)
      Description copied from interface: DomainCombiner
      Returns a combination of the two provided ProtectionDomain arrays. Implementers can simply merge the two arrays into one, remove duplicates and perform other optimizations.
      Specified by:
      combine in interface DomainCombiner
      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.