com.sun.xml.ws.security.policy
Interface EncryptedParts

All Superinterfaces:
Target
All Known Implementing Classes:
EncryptedParts

public interface EncryptedParts
extends Target

Identifies targets that if present in the message should be confidentiality protected.


      <sp:EncryptedParts ... >
          <sp:Body/>?
          <sp:Header Name="xs:NCName"? Namespace="xs:anyURI" ... />*
              ...
      </sp:EncryptedParts>


Field Summary
 
Fields inherited from interface com.sun.xml.ws.security.policy.Target
SOAP_BODY
 
Method Summary
 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.
 

Method Detail

hasBody

boolean hasBody()
Returns:
true if the body is part of the target list.

hasAttachments

boolean hasAttachments()
Returns:
true if attachments are part of the target list.

getTargets

java.util.Iterator getTargets()
returns list of SOAP Headers that need to protected.

Returns:
Iterator over the list of SOAP Headers

removeBody

void removeBody()
removes SOAP Body from the list of targets to be confidentiality protected.