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

HttpsToken

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

Fields Summary
private AssertionFitness
fitness
private boolean
populated
private boolean
requireCC
private String
id
private static QName
rccQname
Constructors Summary
public HttpsToken()
Creates a new instance of HttpsToken

               
      
        UUID uid = UUID.randomUUID();
        id= uid.toString();
    
public HttpsToken(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 java.lang.StringgetIncludeToken()

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

        return id;
    
public booleanisRequireClientCertificate()

        populate();
        return this.requireCC;
    
private synchronized AssertionFitnesspopulate(boolean isServer)

        
        if(!populated){
            String value = this.getAttributeValue(rccQname);
            requireCC = Boolean.valueOf(value);
            populated = true;
            
        }
        return fitness;
        
    
private voidpopulate()

        populate(false);
    
public voidsetIncludeToken(java.lang.String type)

        throw new UnsupportedOperationException("This method is not supported for HttpsToken");
    
public voidsetRequireClientCertificate(boolean value)

        Map<QName, String> attrs = this.getAttributes();
        QName rccQname = new QName(Constants.SECURITY_POLICY_NS, Constants.RequireClientCertificate);
        attrs.put(rccQname,Boolean.toString(value));
        requireCC = value;
    
public AssertionFitnessvalidate(boolean isServer)

        return populate(isServer);