com.sun.xml.ws.security.impl.policy
Class EncryptedParts
java.lang.Object
com.sun.xml.ws.policy.PolicyAssertion
com.sun.xml.ws.security.impl.policy.EncryptedParts
- All Implemented Interfaces:
- EncryptedParts, SecurityAssertionValidator, Target
public class EncryptedParts
- extends PolicyAssertion
- implements EncryptedParts, SecurityAssertionValidator
- Author:
- K.Venugopal@sun.com Abhijit.Das@Sun.com
| Fields inherited from interface com.sun.xml.ws.security.policy.Target |
SOAP_BODY |
| Methods inherited from class com.sun.xml.ws.policy.PolicyAssertion |
equals, getAttributes, getAttributesSet, getAttributeValue, getImplementation, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString |
EncryptedParts
public EncryptedParts()
- Creates a new instance of EncryptedPartImpl
EncryptedParts
public EncryptedParts(AssertionData name,
Collection<PolicyAssertion> nestedAssertions,
AssertionSet nestedAlternative)
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(QName targetName)
getTargets
public 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(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
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.