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

Wss11

public class Wss11 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
private AssertionFitness
fitness
Set
requiredPropSet
String
version
QName
name
boolean
populated
Constructors Summary
public Wss11()
Creates a new instance of WSSAssertion

    
               
      
    
public Wss11(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.isWSS11PolicyContent(pa)){
                    addRequiredProperty(pa.getName().getLocalPart().intern());
                }else{
                    if(!pa.isOptional()){
                        log_invalid_assertion(pa, isServer,"Wss11");
                        fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
                    }
                }
                
                
            }
            populated = true;
        }
        return fitness;
    
public AssertionFitnessvalidate(boolean isServer)

        return populate(isServer);