Package com.sun.xml.wss.impl.policy
Class MLSPolicy
java.lang.Object
com.sun.xml.wss.impl.policy.MLSPolicy
- All Implemented Interfaces:
SecurityPolicy
- Direct Known Subclasses:
WSSPolicy
Represents a base class for Message Level Security (MLS) Policies.
Any MLSPolicy can be epxressed as being composed of one or both of
two SecurityPolicy components called FeatureBinding and KeyBinding.
This generic structure for an MLSPolicy allows for representing complex,
concrete Message Level Security Policies.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MLSPolicyGet FeatureBinding componentabstract MLSPolicyGet KeyBinding componentbooleanvoidisReadOnly(boolean readonly) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.xml.wss.impl.policy.SecurityPolicy
getType
-
Field Details
-
readonly
protected boolean readonly
-
-
Constructor Details
-
MLSPolicy
public MLSPolicy()
-
-
Method Details
-
getFeatureBinding
Get FeatureBinding component- Returns:
- FeatureBinding component of this MLSPolicy
- Throws:
PolicyGenerationException- if a FeatureBinding component is invalid for this MLSPolicy
-
getKeyBinding
Get KeyBinding component- Returns:
- KeyBinding component of this MLSPolicy
- Throws:
PolicyGenerationException- if a KeyBinding component is invalid for this MLSPolicy
-
isReadOnly
- Parameters:
readonly- set the readonly status of the policy.- Throws:
PolicyGenerationException
-
isReadOnly
public boolean isReadOnly()- Returns:
- true if policy is readonly.
-