public class

SubjectDomainCombiner

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

Class Overview

Merges permissions based on code source and code signers with permissions granted to the specified Subject.

Summary

Public Constructors
SubjectDomainCombiner(Subject subject)
Creates a domain combiner for the entity provided in subject.
Public Methods
ProtectionDomain[] combine(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)
Merges the ProtectionDomain with the Principals associated with the subject of this SubjectDomainCombiner.
Subject getSubject()
Returns the entity to which this domain combiner is associated.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.DomainCombiner

Public Constructors

public SubjectDomainCombiner (Subject subject)

Creates a domain combiner for the entity provided in subject.

Parameters
subject the entity to which this domain combiner is associated.

Public Methods

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

Merges the ProtectionDomain with the Principals associated with the subject of this SubjectDomainCombiner.

Parameters
currentDomains the ProtectionDomains associated with the context of the current thread. The domains must be sorted according to the execution order, the most recent residing at the beginning.
assignedDomains the ProtectionDomains from the parent thread based on code source and signers.
Returns
  • a single ProtectionDomain array computed from the two provided arrays, or null.
See Also

public Subject getSubject ()

Returns the entity to which this domain combiner is associated.

Returns
  • the entity to which this domain combiner is associated.