Class MLSPolicy

java.lang.Object
com.sun.xml.wss.impl.policy.MLSPolicy
All Implemented Interfaces:
SecurityPolicy
Direct Known Subclasses:
WSSPolicy

public abstract class MLSPolicy extends Object implements SecurityPolicy
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 Details

    • readonly

      protected boolean readonly
  • Constructor Details

    • MLSPolicy

      public MLSPolicy()
  • Method Details

    • getFeatureBinding

      public abstract MLSPolicy getFeatureBinding() throws PolicyGenerationException
      Get FeatureBinding component
      Returns:
      FeatureBinding component of this MLSPolicy
      Throws:
      PolicyGenerationException - if a FeatureBinding component is invalid for this MLSPolicy
    • getKeyBinding

      public abstract MLSPolicy getKeyBinding() throws PolicyGenerationException
      Get KeyBinding component
      Returns:
      KeyBinding component of this MLSPolicy
      Throws:
      PolicyGenerationException - if a KeyBinding component is invalid for this MLSPolicy
    • isReadOnly

      public void isReadOnly(boolean readonly)
      Parameters:
      readonly - set the readonly status of the policy.
    • isReadOnly

      public boolean isReadOnly()
      Returns:
      true if policy is readonly.