FileDocCategorySizeDatePackage
EndorsingSupportingTokensProcessor.javaAPI DocExample3947Tue May 29 16:56:48 BST 2007com.sun.xml.ws.security.impl.policyconv

EndorsingSupportingTokensProcessor

public class EndorsingSupportingTokensProcessor extends SupportingTokensProcessor
author
K.Venugopal@sun.com

Fields Summary
protected com.sun.xml.wss.impl.policy.mls.SignaturePolicy
primarySP
Constructors Summary
public EndorsingSupportingTokensProcessor(com.sun.xml.ws.security.policy.SupportingTokens st, TokenProcessor tokenProcessor, com.sun.xml.ws.security.policy.Binding binding, XWSSPolicyContainer container, com.sun.xml.wss.impl.policy.mls.SignaturePolicy sp, com.sun.xml.wss.impl.policy.mls.EncryptionPolicy ep, PolicyID pid)
Creates a new instance of EndorsingSupportingTokensProcessor

           
        
                 
        super(st,tokenProcessor,binding,container,sp,ep,pid);
    
Methods Summary
protected voidaddToPrimarySignature(com.sun.xml.wss.impl.policy.mls.WSSPolicy policy, com.sun.xml.ws.security.policy.Token token)

    
protected voidcollectSignaturePolicies(com.sun.xml.ws.security.policy.Token token)

        createSupportingSignature(token);
    
protected voidcorrectSAMLBinding(com.sun.xml.wss.impl.policy.mls.WSSPolicy policy)

        ((AuthenticationTokenPolicy.SAMLAssertionBinding)policy).setAssertionType(AuthenticationTokenPolicy.SAMLAssertionBinding.HOK_ASSERTION);
    
protected voidendorseSignature(com.sun.xml.wss.impl.policy.mls.SignaturePolicy sp)

        SignaturePolicy.FeatureBinding spFB = (SignaturePolicy.FeatureBinding)sp.getFeatureBinding();
        SignatureTarget sigTarget = stc.newURISignatureTarget(signaturePolicy.getUUID());
        SecurityPolicyUtil.setName(sigTarget, signaturePolicy);
        spFB.addTargetBinding(sigTarget);
        spFB.isEndorsingSignature(true);