net.sf.jguard.core.authorization.domaincombiners
Class StackSubjectDomainCombiner

java.lang.Object
  extended by net.sf.jguard.core.authorization.domaincombiners.StackSubjectDomainCombiner
All Implemented Interfaces:
java.security.DomainCombiner

public class StackSubjectDomainCombiner
extends java.lang.Object
implements java.security.DomainCombiner

Author:
Charles Gay, Vincent Beretti

Constructor Summary
StackSubjectDomainCombiner(javax.security.auth.Subject subj)
           
 
Method Summary
 java.security.ProtectionDomain[] combine(java.security.ProtectionDomain[] currentDomains, java.security.ProtectionDomain[] assignedDomains)
          creates a new array of ProtectionDomains adds on the top of the currentDomains a new ProtectionDomain with null CodeSource, a null classloader, empty permissions collection and the subject principals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackSubjectDomainCombiner

public StackSubjectDomainCombiner(javax.security.auth.Subject subj)
Method Detail

combine

public java.security.ProtectionDomain[] combine(java.security.ProtectionDomain[] currentDomains,
                                                java.security.ProtectionDomain[] assignedDomains)
creates a new array of ProtectionDomains adds on the top of the currentDomains a new ProtectionDomain with null CodeSource, a null classloader, empty permissions collection and the subject principals.
assignedDomains is not combined.

Specified by:
combine in interface java.security.DomainCombiner
Parameters:
currentDomains - ProtectionDomain[]
assignedDomains - ProtectionDomain[]


Copyright © 2004-2009. All Rights Reserved.