org.apache.jetspeed.security.impl
Class JaasPolicyCoordinator

java.lang.Object
  extended by java.security.Policy
      extended by org.apache.jetspeed.security.impl.JaasPolicyCoordinator

public class JaasPolicyCoordinator
extends Policy

Provide coordination between the default policy and Jetspeed custom policy.


Field Summary
private  Policy defaultPolicy
           
private  Policy j2Policy
           
 
Constructor Summary
JaasPolicyCoordinator(Policy defaultPolicy, Policy j2Policy)
           Constructor for coordinating the policies.
 
Method Summary
 PermissionCollection getPermissions(CodeSource codeSource)
           
 boolean implies(ProtectionDomain domain, Permission permission)
           
 void refresh()
           
 
Methods inherited from class java.security.Policy
getPermissions, getPolicy, setPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultPolicy

private final Policy defaultPolicy

j2Policy

private final Policy j2Policy
Constructor Detail

JaasPolicyCoordinator

public JaasPolicyCoordinator(Policy defaultPolicy,
                             Policy j2Policy)

Constructor for coordinating the policies.

Parameters:
defaultPolicy - The default policy.
j2Policy - Jetspeed policy.
Method Detail

getPermissions

public PermissionCollection getPermissions(CodeSource codeSource)
Specified by:
getPermissions in class Policy
See Also:
Policy.getPermissions(java.security.CodeSource)

refresh

public void refresh()
Specified by:
refresh in class Policy
See Also:
Policy.refresh()

implies

public boolean implies(ProtectionDomain domain,
                       Permission permission)
Overrides:
implies in class Policy
See Also:
Policy.implies(java.security.ProtectionDomain, java.security.Permission)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.