DomainCombiner


DomainCombiner java.security

Java 1.3

This interface defines a single combine( ) method that combines two arrays of ProtectionDomain objects into a single equivalent (and perhaps optimized) array. You can associate a DomainCombiner with an existing AccessControlContext by calling the two-argument AccessControlContext( ) constructor. Then, when the checkPermission( ) method of the AccessControlContext is called or when the AccessControlContext is passed to a doPrivileged( ) method of AccessController , the specified DomainCombiner merges the protection domains of the current stack frame with the protection domains encapsulated in the AccessControlContext . This class is used only by system-level code; typical applications rarely need to use it.

 public interface  DomainCombiner  {  // Public Instance Methods  ProtectionDomain[ ]  combine  (ProtectionDomain[ ]  currentDomains  ,          ProtectionDomain[ ]  assignedDomains  );   } 

Implementations

javax.security.auth.SubjectDomainCombiner

Passed To

AccessControlContext.AccessControlContext( )

Returned By

AccessControlContext.getDomainCombiner( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net