com.sun.xml.wss.impl.policy
Class MLSPolicy

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

public abstract class MLSPolicy
extends java.lang.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.


Constructor Summary
MLSPolicy()
           
 
Method Summary
abstract  MLSPolicy getFeatureBinding()
          Get FeatureBinding component
abstract  MLSPolicy getKeyBinding()
          Get KeyBinding component
 boolean isReadOnly()
           
 void isReadOnly(boolean readonly)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.wss.impl.policy.SecurityPolicy
getType
 

Constructor Detail

MLSPolicy

public MLSPolicy()
Method Detail

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.


Copyright ? 2005 Sun Microsystems, Inc. All Rights Reserved.