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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.xml.ws.security.policy.SecurityAssertionValidator
SecurityAssertionValidator.AssertionFitness
-
-
Constructor Summary
Constructors Constructor Description EncryptedParts()Creates a new instance of EncryptedPartImplEncryptedParts(AssertionData name, Collection<PolicyAssertion> nestedAssertions, AssertionSet nestedAlternative)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBody()voidaddTarget(QName targetName)IteratorgetTargets()returns list of SOAP Headers that need to protected.booleanhasAttachments()booleanhasBody()voidremoveBody()removes SOAP Body from the list of targets to be confidentiality protected.voidremoveTarget(QName targetName)SecurityAssertionValidator.AssertionFitnessvalidate(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, getImplementation, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
-
-
-
Constructor Detail
-
EncryptedParts
public EncryptedParts()
Creates a new instance of EncryptedPartImpl
-
EncryptedParts
public EncryptedParts(AssertionData name, Collection<PolicyAssertion> nestedAssertions, AssertionSet nestedAlternative)
-
-
Method Detail
-
addBody
public void addBody()
-
hasBody
public boolean hasBody()
- Specified by:
hasBodyin interfaceEncryptedParts- Returns:
- true if the body is part of the target list.
-
hasAttachments
public boolean hasAttachments()
- Specified by:
hasAttachmentsin interfaceEncryptedParts- Returns:
- true if attachments are part of the target list.
-
addTarget
public void addTarget(QName targetName)
-
getTargets
public Iterator getTargets()
Description copied from interface:EncryptedPartsreturns list of SOAP Headers that need to protected.- Specified by:
getTargetsin interfaceEncryptedParts- Returns:
Iteratorover the list of SOAP Headers
-
validate
public SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
Description copied from interface:SecurityAssertionValidatorreturns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.- Specified by:
validatein interfaceSecurityAssertionValidator
-
removeTarget
public void removeTarget(QName targetName)
-
removeBody
public void removeBody()
Description copied from interface:EncryptedPartsremoves SOAP Body from the list of targets to be confidentiality protected.- Specified by:
removeBodyin interfaceEncryptedParts
-
-