com.sun.xml.ws.security.impl.policyconv
Class SupportingTokensProcessor

java.lang.Object
  extended by com.sun.xml.ws.security.impl.policyconv.SupportingTokensProcessor
Direct Known Subclasses:
EncryptedSupportingTokensProcessor, EndorsingSupportingTokensProcessor, SignedSupportingTokensProcessor

public class SupportingTokensProcessor
extends java.lang.Object


Field Summary
protected  Binding binding
           
protected  boolean buildEP
           
protected  boolean buildSP
           
protected  EncryptionAssertionProcessor eAP
           
protected  SignedParts emptySP
           
protected  com.sun.xml.wss.impl.policy.mls.EncryptionPolicy encryptionPolicy
           
protected  java.util.ArrayList<com.sun.xml.wss.impl.policy.mls.EncryptionPolicy> epList
           
protected  EncryptionTargetCreator etc
           
protected  IntegrityAssertionProcessor iAP
           
protected  PolicyID pid
           
protected  XWSSPolicyContainer policyContainer
           
protected  com.sun.xml.wss.impl.policy.mls.SignaturePolicy signaturePolicy
           
protected  java.util.ArrayList<com.sun.xml.wss.impl.policy.mls.SignaturePolicy> spList
           
protected  SupportingTokens st
           
protected  SignatureTargetCreator stc
           
protected  TokenProcessor tokenProcessor
           
 
Constructor Summary
protected SupportingTokensProcessor()
           
  SupportingTokensProcessor(SupportingTokens st, TokenProcessor tokenProcessor, 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 SupportingTokensProcessor
 
Method Summary
protected  void addTargets()
           
protected  void addToPrimarySignature(com.sun.xml.wss.impl.policy.mls.WSSPolicy policy, Token token)
           
protected  void collectSignaturePolicies(Token token)
           
protected  void correctSAMLBinding(com.sun.xml.wss.impl.policy.mls.WSSPolicy policy)
           
protected  void createSupportingSignature(Token token)
           
protected  void encryptToken(Token token, SecurityPolicyVersion spVersion)
           
protected  void endorseSignature(com.sun.xml.wss.impl.policy.mls.SignaturePolicy sp)
           
protected  SignedParts getEmptySignedParts(java.util.Iterator itr)
           
protected  java.util.ArrayList<com.sun.xml.wss.impl.policy.mls.EncryptionPolicy> getEPList()
           
protected  java.util.ArrayList<com.sun.xml.wss.impl.policy.mls.SignaturePolicy> getSPList()
           
protected  void populateEncryptionPolicy()
           
protected  void populateSignaturePolicy()
           
 void process()
           
protected  void protectToken(com.sun.xml.wss.impl.policy.mls.WSSPolicy token, com.sun.xml.wss.impl.policy.mls.SignaturePolicy sp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenProcessor

protected TokenProcessor tokenProcessor

stc

protected SignatureTargetCreator stc

etc

protected EncryptionTargetCreator etc

binding

protected Binding binding

policyContainer

protected XWSSPolicyContainer policyContainer

signaturePolicy

protected com.sun.xml.wss.impl.policy.mls.SignaturePolicy signaturePolicy

encryptionPolicy

protected com.sun.xml.wss.impl.policy.mls.EncryptionPolicy encryptionPolicy

st

protected SupportingTokens st

iAP

protected IntegrityAssertionProcessor iAP

eAP

protected EncryptionAssertionProcessor eAP

spList

protected java.util.ArrayList<com.sun.xml.wss.impl.policy.mls.SignaturePolicy> spList

epList

protected java.util.ArrayList<com.sun.xml.wss.impl.policy.mls.EncryptionPolicy> epList

emptySP

protected SignedParts emptySP

buildSP

protected boolean buildSP

buildEP

protected boolean buildEP

pid

protected PolicyID pid
Constructor Detail

SupportingTokensProcessor

protected SupportingTokensProcessor()

SupportingTokensProcessor

public SupportingTokensProcessor(SupportingTokens st,
                                 TokenProcessor tokenProcessor,
                                 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 SupportingTokensProcessor

Method Detail

process

public void process()
             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

collectSignaturePolicies

protected void collectSignaturePolicies(Token token)
                                 throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

createSupportingSignature

protected void createSupportingSignature(Token token)
                                  throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

addToPrimarySignature

protected void addToPrimarySignature(com.sun.xml.wss.impl.policy.mls.WSSPolicy policy,
                                     Token token)
                              throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

endorseSignature

protected void endorseSignature(com.sun.xml.wss.impl.policy.mls.SignaturePolicy sp)

getSPList

protected java.util.ArrayList<com.sun.xml.wss.impl.policy.mls.SignaturePolicy> getSPList()

getEPList

protected java.util.ArrayList<com.sun.xml.wss.impl.policy.mls.EncryptionPolicy> getEPList()

encryptToken

protected void encryptToken(Token token,
                            SecurityPolicyVersion spVersion)
                     throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

getEmptySignedParts

protected SignedParts getEmptySignedParts(java.util.Iterator itr)

addTargets

protected void addTargets()

populateSignaturePolicy

protected void populateSignaturePolicy()

populateEncryptionPolicy

protected void populateEncryptionPolicy()

protectToken

protected void protectToken(com.sun.xml.wss.impl.policy.mls.WSSPolicy token,
                            com.sun.xml.wss.impl.policy.mls.SignaturePolicy sp)

correctSAMLBinding

protected void correctSAMLBinding(com.sun.xml.wss.impl.policy.mls.WSSPolicy policy)