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

TransportToken

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

Fields Summary
private QName
itQname
private String
id
private String
includeToken
private HttpsToken
token
private boolean
populated
private AssertionFitness
fitness
Constructors Summary
public TransportToken()
Creates a new instance of TransportToken

               
      
        UUID uid = UUID.randomUUID();
        id= uid.toString();
    
public TransportToken(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)

        super(name,nestedAssertions,nestedAlternative);
        UUID uid = UUID.randomUUID();
        id= uid.toString();
    
Methods Summary
public com.sun.xml.ws.security.policy.HttpsTokengetHttpsToken()

        populate();
        return token;
    
public java.lang.StringgetIncludeToken()

        throw new UnsupportedOperationException("This method is not supported for TransportToken");
    
public java.lang.StringgetTokenId()

        return id;
    
private synchronized AssertionFitnesspopulate(boolean isServer)

        if(!populated){
            this.includeToken = this.getAttributeValue(itQname);
            NestedPolicy policy = this.getNestedPolicy();
            AssertionSet assertionSet = policy.getAssertionSet();
            for(PolicyAssertion assertion: assertionSet){
                if(PolicyUtil.isHttpsToken(assertion)){
                    token = (HttpsToken) assertion;
                }else{
                    if(!assertion.isOptional()){
                        log_invalid_assertion(assertion, isServer,"TransportToken");
                        fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
                    }
                }
            }
            this.populated  = true;
        }
        return fitness;
    
private voidpopulate()

        populate(false);
    
public voidsetHttpsToken(com.sun.xml.ws.security.policy.HttpsToken token)

        //TODO::
    
public voidsetIncludeToken(java.lang.String type)

        throw new UnsupportedOperationException("This method is not supported for TransportToken");
    
public AssertionFitnessvalidate(boolean isServer)

        return populate(isServer);