org.apache.jetspeed.security
Class PolicyWrapper

java.lang.Object
  extended by org.apache.jetspeed.security.PolicyWrapper
All Implemented Interfaces:
java.io.Serializable

public class PolicyWrapper
extends java.lang.Object
implements java.io.Serializable

Simple wrapper for security policy providing the ability to add attribute on Policy and how they should be used by the application.

Author:
David Le Strat
See Also:
Serialized Form

Constructor Summary
PolicyWrapper(java.security.Policy policy, boolean useAsPolicy, boolean defaultPolicy)
           
 
Method Summary
 java.security.Policy getPolicy()
           
 boolean isDefaultPolicy()
           
 boolean isUseAsPolicy()
           
 void setDefaultPolicy(boolean defaultPolicy)
           
 void setPolicy(java.security.Policy policy)
           
 void setUseAsPolicy(boolean useAsPolicy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyWrapper

public PolicyWrapper(java.security.Policy policy,
                     boolean useAsPolicy,
                     boolean defaultPolicy)
Parameters:
policy -
useAsPolicy -
defaultPolicy -
Method Detail

getPolicy

public java.security.Policy getPolicy()
Returns:
Returns the policy.

setPolicy

public void setPolicy(java.security.Policy policy)
Parameters:
policy - The policy to set.

isDefaultPolicy

public boolean isDefaultPolicy()
Returns:
Returns the defaultPolicy.

setDefaultPolicy

public void setDefaultPolicy(boolean defaultPolicy)
Parameters:
defaultPolicy - The defaultPolicy to set.

isUseAsPolicy

public boolean isUseAsPolicy()
Returns:
Returns the useAsPolicy.

setUseAsPolicy

public void setUseAsPolicy(boolean useAsPolicy)
Parameters:
useAsPolicy - The useAsPolicy to set.


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