org.apache.jetspeed.security
Class PolicyWrapper
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyWrapper
public PolicyWrapper(java.security.Policy policy,
boolean useAsPolicy,
boolean defaultPolicy)
- Parameters:
policy
- useAsPolicy
- defaultPolicy
-
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-2010 Apache Software Foundation. All Rights Reserved.