org.apache.jetspeed.security
Class SecurityPolicies

java.lang.Object
  extended by org.apache.jetspeed.security.SecurityPolicies

public class SecurityPolicies
extends java.lang.Object

This class is used to hold the security that will be used when applying security policies. It uses a singleton pattern to maintain state of the policies configured in the consuming engine.

Author:
David Le Strat

Method Summary
 void addPolicy(PolicyWrapper wrappedPolicy)
           Adds a policy to the list of policies to enforces.
static SecurityPolicies getInstance()
           Returns the singleton instance for SecurityPolicies.
 java.util.List getPolicies()
           Returns the security policies to enforce as list of Policy.
 java.util.List getUsedPolicies()
           Returns the security policies to be enforced as list of Policy.
 java.util.List getWrappedPolicies()
           Returns the security policies to enforce as list of PolicyWrapper.
 void removePolicy(PolicyWrapper policy)
           Removes a policy from the list of policies to enforces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SecurityPolicies getInstance()

Returns the singleton instance for SecurityPolicies.

Returns:
The instance of SecurityPolicies

addPolicy

public void addPolicy(PolicyWrapper wrappedPolicy)

Adds a policy to the list of policies to enforces.

Parameters:
wrappedPolicy - The PolicyWrapper to add.

getPolicies

public java.util.List getPolicies()

Returns the security policies to enforce as list of Policy.

Returns:
The policies.

getUsedPolicies

public java.util.List getUsedPolicies()

Returns the security policies to be enforced as list of Policy.

Returns:
The used policies.

getWrappedPolicies

public java.util.List getWrappedPolicies()

Returns the security policies to enforce as list of PolicyWrapper.

Returns:
The policies.

removePolicy

public void removePolicy(PolicyWrapper policy)

Removes a policy from the list of policies to enforces.

Parameters:
policy - The Policy to add.


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