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

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

public class SignedParts
extends com.sun.xml.ws.policy.PolicyAssertion
implements SignedParts, 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
SignedParts()
          Creates a new instance of SignedParts
SignedParts(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 addHeader(Header header)
           
 java.lang.String attachmentProtectionType()
           
 java.util.Iterator getHeaders()
          Iterator over list of Headers that identify targets in the SOAP header to be integrity protected.
 boolean hasAttachments()
           
 boolean hasBody()
           
 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

SignedParts

public SignedParts()
Creates a new instance of SignedParts


SignedParts

public SignedParts(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 SignedParts
Returns:
true if the body is to be integrity protected.

hasAttachments

public boolean hasAttachments()
Specified by:
hasAttachments in interface SignedParts
Returns:
true if the attachments are to be integrity protected

attachmentProtectionType

public java.lang.String attachmentProtectionType()
Specified by:
attachmentProtectionType in interface SignedParts
Returns:
the URI of transform to be applied on attachment, the default is Attachment-Complete-Transform

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

addHeader

public void addHeader(Header header)

getHeaders

public java.util.Iterator getHeaders()
Description copied from interface: SignedParts
Iterator over list of Headers that identify targets in the SOAP header to be integrity protected.

Specified by:
getHeaders in interface SignedParts
Returns:
Iterator