FileDocCategorySizeDatePackage
Issuer.javaAPI DocExample5102Tue May 29 16:56:46 BST 2007com.sun.xml.ws.security.impl.policy

Issuer

public class Issuer extends com.sun.xml.ws.policy.PolicyAssertion implements com.sun.xml.ws.security.policy.SecurityAssertionValidator, com.sun.xml.ws.security.policy.Issuer
author
Abhijit Das

Fields Summary
private AssertionFitness
fitness
private com.sun.xml.ws.addressing.policy.Address
address
private boolean
populated
private com.sun.xml.ws.policy.PolicyAssertion
refProps
private com.sun.xml.ws.policy.PolicyAssertion
refParams
private com.sun.xml.ws.policy.PolicyAssertion
serviceName
private String
portType
Constructors Summary
public Issuer()
Creates a new instance of Issuer

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

        super(name,nestedAssertions,nestedAlternative);
    
Methods Summary
public com.sun.xml.ws.addressing.policy.AddressgetAddress()

        populate();
        return (Address) address;
    
public java.lang.StringgetPortType()

        populate();
        return portType;
    
public com.sun.xml.ws.policy.PolicyAssertiongetReferenceParameters()

        populate();
        return refParams;
    
public com.sun.xml.ws.policy.PolicyAssertiongetReferenceProperties()

        populate();
        return refProps;
    
public com.sun.xml.ws.policy.PolicyAssertiongetServiceName()

        populate();
        return serviceName;
    
private voidpopulate()

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

        if(!populated){
            if ( this.hasNestedAssertions() ) {
                Iterator <PolicyAssertion> it = this.getNestedAssertionsIterator();
                while ( it.hasNext() ) {
                    PolicyAssertion assertion = it.next();
                    if ( PolicyUtil.isAddress(assertion)) {
                        this.address = (Address) assertion;
                    } else if(PolicyUtil.isPortType(assertion)){
                        this.portType = assertion.getValue();
                    } else if(PolicyUtil.isReferenceParameters(assertion)){
                        this.refParams = assertion;
                    } else if(PolicyUtil.isReferenceProperties(assertion)){
                        this.refProps = assertion;
                    } else if(PolicyUtil.isServiceName(assertion)){
                        this.serviceName = assertion;
                    }
                }
            }
            populated = true;
        }
        return fitness;
    
public AssertionFitnessvalidate(boolean isServer)

        return populate(isServer);