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

Wss10

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

Fields Summary
Set
requiredPropSet
String
version
QName
name
boolean
populated
private AssertionFitness
fitness
Constructors Summary
public Wss10()
Creates a new instance of WSSAssertion

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

        super(name,nestedAssertions,nestedAlternative);
    
Methods Summary
public voidaddRequiredProperty(java.lang.String requirement)

        if(requiredPropSet == null){
            requiredPropSet = new HashSet<String>();
        }
        requiredPropSet.add(requirement);
    
public java.util.SetgetRequiredProperties()

        populate();
        return requiredPropSet;
    
public java.lang.StringgetType()

        return version;
    
private voidpopulate()

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

        if(!populated){
            NestedPolicy policy = this.getNestedPolicy();
            if(policy == null){
                if(logger.getLevel() == Level.FINE){
                    logger.log(Level.FINE,"NestedPolicy is null");
                }
                populated = true;
                return fitness;
            }
            AssertionSet as = policy.getAssertionSet();
            for(PolicyAssertion pa:as){
                if(PolicyUtil.isWSS10PolicyContent(pa)){
                    addRequiredProperty(pa.getName().getLocalPart().intern());
                }else{
                    if(!pa.isOptional()){
                        log_invalid_assertion(pa, isServer,"Wss10");
                        fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
                    }
                }
            }
            populated = true;
        }
        return fitness;
    
public AssertionFitnessvalidate(boolean isServer)

        return populate(isServer);