FileDocCategorySizeDatePackage
SignedParts.javaAPI DocExample4463Tue May 29 16:56:48 BST 2007com.sun.xml.ws.security.impl.policy

SignedParts

public class SignedParts extends com.sun.xml.ws.policy.PolicyAssertion implements com.sun.xml.ws.security.policy.SignedParts, com.sun.xml.ws.security.policy.SecurityAssertionValidator
author
K.Venugopal@sun.com

Fields Summary
private AssertionFitness
fitness
private boolean
body
private boolean
populated
private Set
targets
Constructors Summary
public SignedParts()
Creates a new instance of SignedParts

    
               
      
    
public SignedParts(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)

        super(name,nestedAssertions,nestedAlternative);
    
Methods Summary
public voidaddBody()

        
    
public voidaddHeader(com.sun.xml.ws.security.policy.Header header)

        
    
public java.util.IteratorgetHeaders()

        populate();
        if(targets == null){
            return Collections.emptyList().iterator();
        }
        return targets.iterator();
    
public booleanhasBody()

        populate();
        return body;
    
private voidpopulate()

        populate(false);
    
private synchronized AssertionFitnesspopulate(boolean isServer)

        if(!populated){
            if(this.hasNestedAssertions()){
                Iterator <PolicyAssertion> it = this.getNestedAssertionsIterator();
                while( it.hasNext() ) {
                    PolicyAssertion as = (PolicyAssertion) it.next();
                    if(PolicyUtil.isBody(as)){
                        // assertions.remove(as);
                        body = true;
                        // break;
                    }else{
                        targets.add(as);
                    }
                }
                //targets = assertions;
            }
            populated = true;
        }
        return fitness;
    
public AssertionFitnessvalidate(boolean isServer)

        return populate(isServer);