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

TransportBinding

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

Fields Summary
com.sun.xml.ws.security.policy.HttpsToken
transportToken
private com.sun.xml.ws.security.policy.AlgorithmSuite
algSuite
boolean
includeTimeStamp
com.sun.xml.ws.security.policy.MessageLayout
layout
boolean
populated
private AssertionFitness
fitness
Constructors Summary
public TransportBinding()
Creates a new instance of TransportBinding

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

        super(name,nestedAssertions,nestedAlternative);
    
Methods Summary
public voidaddTransportToken(com.sun.xml.ws.security.policy.Token token)

        transportToken = (HttpsToken) token;
    
public com.sun.xml.ws.security.policy.AlgorithmSuitegetAlgorithmSuite()

        populate();
        return algSuite;
    
public com.sun.xml.ws.security.policy.MessageLayoutgetLayout()

        populate();
        return layout;
    
public java.lang.StringgetProtectionOrder()

        throw new UnsupportedOperationException("Not supported");
    
public booleangetSignatureProtection()

        throw new UnsupportedOperationException("Not supported");
    
public booleangetTokenProtection()

        throw new UnsupportedOperationException("Not supported");
    
public com.sun.xml.ws.security.policy.TokengetTransportToken()

        populate();
        return transportToken;
    
public voidincludeTimeStamp(boolean value)

        includeTimeStamp = value;
    
public booleanisIncludeTimeStamp()

        populate();
        return includeTimeStamp;
    
public booleanisSignContent()

        throw new UnsupportedOperationException("Not supported");
    
private voidpopulate()

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

        if(!populated){
            NestedPolicy policy = this.getNestedPolicy();
            AssertionSet assertions = policy.getAssertionSet();
            if(assertions == null){
                if(logger.getLevel() == Level.FINE){
                    logger.log(Level.FINE,"NestedPolicy is null");
                }
                populated = true;
                return fitness;
            }
            for(PolicyAssertion assertion : assertions){
                if(PolicyUtil.isAlgorithmAssertion(assertion)){
                    this.algSuite = (AlgorithmSuite) assertion;
                }else if(PolicyUtil.isToken(assertion)){
                    transportToken = (HttpsToken)((com.sun.xml.ws.security.impl.policy.Token)assertion).getToken();
                }else if(PolicyUtil.isMessageLayout(assertion)){
                    layout = ((Layout)assertion).getMessageLayout();
                }else if(PolicyUtil.isIncludeTimestamp(assertion)){
                    includeTimeStamp=true;
                } else{
                    if(!assertion.isOptional()){
                        log_invalid_assertion(assertion, isServer,TransportBinding);
                        fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
                    }
                }
            }
            populated = true;
        }
        return fitness;
    
public voidsetAlgorithmSuite(com.sun.xml.ws.security.policy.AlgorithmSuite algSuite)

        this.algSuite = algSuite;
    
public voidsetLayout(com.sun.xml.ws.security.policy.MessageLayout layout)

        this.layout = layout;
    
public voidsetProtectionOrder(java.lang.String order)

        throw new UnsupportedOperationException("Not supported");
    
public voidsetSignContent(boolean contentOnly)

        throw new UnsupportedOperationException("Not supported");
    
public voidsetSignatureProtection(boolean token)

        throw new UnsupportedOperationException("Not supported");
    
public voidsetTokenProtection(boolean token)

        throw new UnsupportedOperationException("Not supported");
    
public AssertionFitnessvalidate(boolean isServer)

        return populate(isServer);