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
public abstract class WSSPolicy extends MLSPolicy implements Cloneable
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 Modifier and Type Field Description protected MLSPolicy
_featureBinding
protected boolean
_isOptional
protected MLSPolicy
_keyBinding
protected String
_policyIdentifier
protected boolean
bsp
protected String
UUID
-
Constructor Summary
Constructors Constructor Description WSSPolicy()
Default constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object
clone()
clone operatrorabstract boolean
equals(WSSPolicy policy)
equals operatorabstract boolean
equalsIgnoreTargets(WSSPolicy policy)
MLSPolicy
getFeatureBinding()
Get FeatureBinding componentMLSPolicy
getKeyBinding()
Get KeyBinding componentString
getPolicyIdentifier()
String
getUUID()
boolean
isBSP()
void
isBSP(boolean flag)
boolean
isOptional()
void
isOptional(boolean isOptional)
void
setFeatureBinding(MLSPolicy policy)
set the FeatureBinding for this WSSPolicyvoid
setKeyBinding(MLSPolicy policy)
set the KeyBinding for this WSSPolicyvoid
setPolicyIdentifier(String pi)
void
setUUID(String uuid)
set a unique policy identifier for this WSSPolicy-
Methods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy
isReadOnly, isReadOnly
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.wss.impl.policy.SecurityPolicy
getType
-
-
-
-
Method Detail
-
getFeatureBinding
public MLSPolicy getFeatureBinding()
Description copied from class:MLSPolicy
Get FeatureBinding component- Specified by:
getFeatureBinding
in classMLSPolicy
- Returns:
- MLSPolicy the FeatureBinding associated with this WSSPolicy, null otherwise
- See Also:
SignaturePolicy
,EncryptionPolicy
,AuthenticationTokenPolicy
-
getKeyBinding
public MLSPolicy getKeyBinding()
Description copied from class:MLSPolicy
Get KeyBinding component- Specified by:
getKeyBinding
in classMLSPolicy
- Returns:
- MLSPolicy the KeyBinding associated with this WSSPolicy, null otherwise
- See Also:
SignaturePolicy
,EncryptionPolicy
,AuthenticationTokenPolicy
-
setFeatureBinding
public void setFeatureBinding(MLSPolicy policy)
set the FeatureBinding for this WSSPolicy- Parameters:
policy
- the FeatureBinding to be set for this WSSPolicy
-
setKeyBinding
public void setKeyBinding(MLSPolicy policy)
set the KeyBinding for this WSSPolicy- Parameters:
policy
- the KeyBinding to be set for this WSSPolicy
-
setPolicyIdentifier
public void setPolicyIdentifier(String pi)
-
getPolicyIdentifier
public String getPolicyIdentifier()
-
getUUID
public String getUUID()
- Returns:
- unique policy identifier associated with this policy
-
setUUID
public void setUUID(String uuid)
set a unique policy identifier for this WSSPolicy- Parameters:
uuid
-
-
isOptional
public boolean isOptional()
-
isOptional
public void isOptional(boolean isOptional)
-
clone
public abstract Object clone()
clone operatror- Overrides:
clone
in classObject
- Returns:
- a clone of this WSSPolicy
- See Also:
SignaturePolicy
,EncryptionPolicy
,AuthenticationTokenPolicy
-
equals
public abstract boolean equals(WSSPolicy policy)
equals operator- Returns:
- true if the argument policy is the same as this WSSPolicy
- See Also:
SignaturePolicy
,EncryptionPolicy
,AuthenticationTokenPolicy
,PrivateKeyBinding
,SymmetricKeyBinding
-
equalsIgnoreTargets
public abstract boolean equalsIgnoreTargets(WSSPolicy policy)
-
isBSP
public void isBSP(boolean flag)
-
isBSP
public boolean isBSP()
-
-