Home » openjdk-7 » javax.security » auth » [javadoc | source]
javax.security.auth
public class: SubjectDomainCombiner [javadoc | source]
java.lang.Object
   javax.security.auth.SubjectDomainCombiner

All Implemented Interfaces:
    DomainCombiner

A SubjectDomainCombiner updates ProtectionDomains with Principals from the Subject associated with this SubjectDomainCombiner.
Constructor:
 public SubjectDomainCombiner(Subject subject) 
    Associate the provided Subject with this SubjectDomainCombiner.

    Parameters:
    subject - the Subject to be associated with with this SubjectDomainCombiner.
Method from javax.security.auth.SubjectDomainCombiner Summary:
combine,   getSubject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.security.auth.SubjectDomainCombiner Detail:
 public ProtectionDomain[] combine(ProtectionDomain[] currentDomains,
    ProtectionDomain[] assignedDomains) 
    Update the relevant ProtectionDomains with the Principals from the Subject associated with this SubjectDomainCombiner.

    A new ProtectionDomain instance is created for each ProtectionDomain in the currentDomains array. Each new ProtectionDomain instance is created using the CodeSource, Permissions and ClassLoader from the corresponding ProtectionDomain in currentDomains, as well as with the Principals from the Subject associated with this SubjectDomainCombiner.

    All of the newly instantiated ProtectionDomains are combined into a new array. The ProtectionDomains from the assignedDomains array are appended to this new array, and the result is returned.

    Note that optimizations such as the removal of duplicate ProtectionDomains may have occurred. In addition, caching of ProtectionDomains may be permitted.

 public Subject getSubject() 
    Get the Subject associated with this SubjectDomainCombiner.