com.sun.xml.ws.security.impl.policy
Class EncryptedParts

java.lang.Object
  extended by com.sun.xml.ws.policy.PolicyAssertion
      extended by com.sun.xml.ws.security.impl.policy.EncryptedParts
All Implemented Interfaces:
EncryptedParts, SecurityAssertionValidator, Target

public class EncryptedParts
extends com.sun.xml.ws.policy.PolicyAssertion
implements EncryptedParts, SecurityAssertionValidator


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.xml.ws.security.policy.SecurityAssertionValidator
SecurityAssertionValidator.AssertionFitness
 
Field Summary
 
Fields inherited from interface com.sun.xml.ws.security.policy.Target
SOAP_BODY
 
Constructor Summary
EncryptedParts()
          Creates a new instance of EncryptedPartImpl
EncryptedParts(com.sun.xml.ws.policy.sourcemodel.AssertionData name, java.util.Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
           
 
Method Summary
 void addBody()
           
 void addTarget(javax.xml.namespace.QName targetName)
           
 java.util.Iterator getTargets()
          returns list of SOAP Headers that need to protected.
 boolean hasAttachments()
           
 boolean hasBody()
           
 void removeBody()
          removes SOAP Body from the list of targets to be confidentiality protected.
 void removeTarget(javax.xml.namespace.QName targetName)
           
 SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
          returns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.
 
Methods inherited from class com.sun.xml.ws.policy.PolicyAssertion
equals, getAttributes, getAttributesSet, getAttributeValue, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EncryptedParts

public EncryptedParts()
Creates a new instance of EncryptedPartImpl


EncryptedParts

public EncryptedParts(com.sun.xml.ws.policy.sourcemodel.AssertionData name,
                      java.util.Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions,
                      com.sun.xml.ws.policy.AssertionSet nestedAlternative)
Method Detail

addBody

public void addBody()

hasBody

public boolean hasBody()
Specified by:
hasBody in interface EncryptedParts
Returns:
true if the body is part of the target list.

hasAttachments

public boolean hasAttachments()
Specified by:
hasAttachments in interface EncryptedParts
Returns:
true if attachments are part of the target list.

addTarget

public void addTarget(javax.xml.namespace.QName targetName)

getTargets

public java.util.Iterator getTargets()
Description copied from interface: EncryptedParts
returns list of SOAP Headers that need to protected.

Specified by:
getTargets in interface EncryptedParts
Returns:
Iterator over the list of SOAP Headers

validate

public SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
Description copied from interface: SecurityAssertionValidator
returns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.

Specified by:
validate in interface SecurityAssertionValidator

removeTarget

public void removeTarget(javax.xml.namespace.QName targetName)

removeBody

public void removeBody()
Description copied from interface: EncryptedParts
removes SOAP Body from the list of targets to be confidentiality protected.

Specified by:
removeBody in interface EncryptedParts