Package com.sun.xml.wss.impl.policy.mls
Class WSSPolicy
java.lang.Object
com.sun.xml.wss.impl.policy.MLSPolicy
com.sun.xml.wss.impl.policy.mls.WSSPolicy
- All Implemented Interfaces:
SecurityPolicy,Cloneable
- Direct Known Subclasses:
EncryptionPolicy.FeatureBinding,KeyBindingBase,MandatoryTargetPolicy,MandatoryTargetPolicy.FeatureBinding,PrivateKeyBinding,SignatureConfirmationPolicy,SignaturePolicy.FeatureBinding,TimestampPolicy,WSSFeatureBindingExtension,WSSKeyBindingExtension
Represents a base class for SOAP Message Security Policies.
Any WSSPolicy can be epxressed as being composed of one or both of
two SecurityPolicy components called FeatureBinding and KeyBinding.
This generic structure for a WSSPolicy allows for representing complex,
concrete WSS Policy Instances.
For example, A SignaturePolicy can have a SAMLAssertion as its KeyBinding.
The SAMLAssertionBinding can in turn have a KeyBinding which is a PrivateKeyBinding.
The PrivateKeyBinding would contain a PrivateKey corresponding to the PublicKey
contained in the SAML Assertion of the SAMLAssertionBinding. Such a SignaturePolicy
instance can then be used by the XWS-Runtime to sign Message parts of an outgoing
SOAP Message. The MessageParts to be signed are inturn identified by the FeatureBinding
component of the SignaturePolicy.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Objectclone()clone operatrorabstract booleanequals operatorabstract booleanequalsIgnoreTargets(WSSPolicy policy) Get FeatureBinding componentGet KeyBinding componentgetUUID()booleanisBSP()voidisBSP(boolean flag) booleanvoidisOptional(boolean isOptional) voidsetFeatureBinding(MLSPolicy policy) set the FeatureBinding for this WSSPolicyvoidsetKeyBinding(MLSPolicy policy) set the KeyBinding for this WSSPolicyvoidvoidset a unique policy identifier for this WSSPolicyMethods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy
isReadOnly, isReadOnlyMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.xml.wss.impl.policy.SecurityPolicy
getType
-
Field Details
-
UUID
-
_policyIdentifier
-
_keyBinding
-
_featureBinding
-
_isOptional
protected boolean _isOptional -
bsp
protected boolean bsp
-
-
Constructor Details
-
WSSPolicy
public WSSPolicy()Default constructor
-
-
Method Details
-
getFeatureBinding
Description copied from class:MLSPolicyGet FeatureBinding component- Specified by:
getFeatureBindingin classMLSPolicy- Returns:
- MLSPolicy the FeatureBinding associated with this WSSPolicy, null otherwise
- See Also:
-
getKeyBinding
Description copied from class:MLSPolicyGet KeyBinding component- Specified by:
getKeyBindingin classMLSPolicy- Returns:
- MLSPolicy the KeyBinding associated with this WSSPolicy, null otherwise
- See Also:
-
setFeatureBinding
set the FeatureBinding for this WSSPolicy- Parameters:
policy- the FeatureBinding to be set for this WSSPolicy
-
setKeyBinding
set the KeyBinding for this WSSPolicy- Parameters:
policy- the KeyBinding to be set for this WSSPolicy
-
setPolicyIdentifier
-
getPolicyIdentifier
-
getUUID
- Returns:
- unique policy identifier associated with this policy
-
setUUID
set a unique policy identifier for this WSSPolicy -
isOptional
public boolean isOptional() -
isOptional
public void isOptional(boolean isOptional) -
clone
clone operatror -
equals
equals operator- Returns:
- true if the argument policy is the same as this WSSPolicy
- See Also:
-
equalsIgnoreTargets
-
isBSP
public void isBSP(boolean flag) -
isBSP
public boolean isBSP()
-