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 com.sun.xml.ws.policy.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 -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of EncryptedPartImplEncryptedParts(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBody()voidreturns list of SOAP Headers that need to protected.booleanbooleanhasBody()voidremoves SOAP Body from the list of targets to be confidentiality protected.voidremoveTarget(QName targetName) 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, getImplementation, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
Constructor Details
-
EncryptedParts
public EncryptedParts()Creates a new instance of EncryptedPartImpl -
EncryptedParts
public EncryptedParts(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
-
-
Method Details
-
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
-
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
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
-
removeBody
public void removeBody()Description copied from interface:EncryptedPartsremoves SOAP Body from the list of targets to be confidentiality protected.- Specified by:
removeBodyin interfaceEncryptedParts
-