com.sun.xml.ws.security.policy.EncryptedParts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.security.policy;
import java.util.Iterator;
/**
* Identifies targets that if present in the message should be confidentiality protected.
*
*
* <xmp>
* <sp:EncryptedParts ... >
* <sp:Body/>?
* <sp:Header Name="xs:NCName"? Namespace="xs:anyURI" ... />*
* ...
* </sp:EncryptedParts>
* </xmp>
*
* @author [email protected]
*/
public interface EncryptedParts extends Target {
/**
*
* @return true if the body is part of the target list.
*/
public boolean hasBody();
/**
*
* @return true if attachments are part of the target list.
*/
public boolean hasAttachments();
/**
* returns list of SOAP Headers that need to protected.
* @return {@link java.util.Iterator} over the list of SOAP Headers
*/
public Iterator getTargets();
/**
* removes SOAP Body from the list of targets to be confidentiality protected.
*/
public void removeBody();
}