javax.security.auth
Class SubjectDomainCombiner

java.lang.Object
  extended by javax.security.auth.SubjectDomainCombiner
All Implemented Interfaces:
DomainCombiner

public class SubjectDomainCombiner
extends Object
implements DomainCombiner


Constructor Summary
SubjectDomainCombiner(Subject subject)
           
 
Method Summary
 ProtectionDomain[] combine(ProtectionDomain[] current, ProtectionDomain[] assigned)
          Combines the current ProtectionDomains of the Thread with new ProtectionDomains.
 Subject getSubject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectDomainCombiner

public SubjectDomainCombiner(Subject subject)
Method Detail

combine

public ProtectionDomain[] combine(ProtectionDomain[] current,
                                  ProtectionDomain[] assigned)
Description copied from interface: DomainCombiner
Combines the current ProtectionDomains of the Thread with new ProtectionDomains.

Specified by:
combine in interface DomainCombiner
Parameters:
current - - the ProtectionDomains for the current thread.
assigned - - ProtectionsDomains to add
Returns:
a new array of all the ProtectionDomains

getSubject

public Subject getSubject()