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

java.lang.Object
  extended by com.sun.xml.ws.security.impl.policyconv.BindingProcessor
Direct Known Subclasses:
AsymmetricBindingProcessor, NilBindingProcessor, SymmetricBindingProcessor, TransportBindingProcessor

public abstract class BindingProcessor
extends java.lang.Object


Field Summary
protected  XWSSPolicyContainer container
           
protected  EncryptionAssertionProcessor eAP
           
protected  java.util.Vector<EncryptedElements> encryptedElements
           
protected  java.util.Vector<EncryptedParts> encryptedParts
           
protected  boolean foundEncryptTargets
           
protected  IntegrityAssertionProcessor iAP
           
protected  boolean isIncoming
           
protected  boolean isServer
           
protected  PolicyID pid
           
protected  com.sun.xml.wss.impl.policy.mls.EncryptionPolicy primaryEP
           
protected  com.sun.xml.wss.impl.policy.mls.SignaturePolicy primarySP
           
protected  java.lang.String protectionOrder
           
protected  com.sun.xml.wss.impl.policy.mls.EncryptionPolicy sEncPolicy
           
protected  java.util.Vector<SignedElements> signedElements
           
protected  java.util.Vector<SignedParts> signedParts
           
protected  com.sun.xml.wss.impl.policy.mls.SignaturePolicy sSigPolicy
           
protected  TokenProcessor tokenProcessor
           
 
Constructor Summary
BindingProcessor()
          Creates a new instance of BindingProcessor
 
Method Summary
protected  void addPrimaryTargets()
           
protected abstract  void close()
           
protected abstract  Binding getBinding()
           
protected abstract  com.sun.xml.wss.impl.policy.mls.EncryptionPolicy getSecondaryEncryptionPolicy()
           
protected  com.sun.xml.wss.impl.policy.mls.SignaturePolicy getSignaturePolicy()
           
 boolean isIssuedTokenAsEncryptedSupportingToken()
           
 boolean isWSS11()
           
 void processSupportingTokens(EncryptedSupportingTokens est)
           
 void processSupportingTokens(EndorsingEncryptedSupportingTokens est)
           
 void processSupportingTokens(EndorsingSupportingTokens est)
           
 void processSupportingTokens(SignedEncryptedSupportingTokens sest)
           
 void processSupportingTokens(SignedEndorsingEncryptedSupportingTokens est)
           
 void processSupportingTokens(SignedEndorsingSupportingTokens est)
           
 void processSupportingTokens(SignedSupportingTokens st)
           
 void processSupportingTokens(SupportingTokens st)
           
protected  void protectPrimarySignature()
           
protected  void protectTimestamp(com.sun.xml.wss.impl.policy.mls.TimestampPolicy tp)
           
protected  void protectToken(com.sun.xml.wss.impl.policy.mls.WSSPolicy token)
           
protected  void protectToken(com.sun.xml.wss.impl.policy.mls.WSSPolicy token, boolean ignoreSTR)
           
protected  boolean requireSC()
           
 void setWSS11(WSSAssertion wss11)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

protectionOrder

protected java.lang.String protectionOrder

isServer

protected boolean isServer

isIncoming

protected boolean isIncoming

primarySP

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

primaryEP

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

sEncPolicy

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

sSigPolicy

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

container

protected XWSSPolicyContainer container

signedParts

protected java.util.Vector<SignedParts> signedParts

encryptedParts

protected java.util.Vector<EncryptedParts> encryptedParts

signedElements

protected java.util.Vector<SignedElements> signedElements

encryptedElements

protected java.util.Vector<EncryptedElements> encryptedElements

pid

protected PolicyID pid

tokenProcessor

protected TokenProcessor tokenProcessor

iAP

protected IntegrityAssertionProcessor iAP

eAP

protected EncryptionAssertionProcessor eAP

foundEncryptTargets

protected boolean foundEncryptTargets
Constructor Detail

BindingProcessor

public BindingProcessor()
Creates a new instance of BindingProcessor

Method Detail

protectPrimarySignature

protected void protectPrimarySignature()
                                throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

protectTimestamp

protected void protectTimestamp(com.sun.xml.wss.impl.policy.mls.TimestampPolicy tp)

protectToken

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

protectToken

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

getSecondaryEncryptionPolicy

protected abstract com.sun.xml.wss.impl.policy.mls.EncryptionPolicy getSecondaryEncryptionPolicy()
                                                                                          throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

addPrimaryTargets

protected void addPrimaryTargets()
                          throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

requireSC

protected boolean requireSC()

getBinding

protected abstract Binding getBinding()

processSupportingTokens

public void processSupportingTokens(SupportingTokens st)
                             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

processSupportingTokens

public void processSupportingTokens(SignedSupportingTokens st)
                             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

processSupportingTokens

public void processSupportingTokens(EndorsingSupportingTokens est)
                             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

processSupportingTokens

public void processSupportingTokens(SignedEndorsingSupportingTokens est)
                             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

processSupportingTokens

public void processSupportingTokens(SignedEncryptedSupportingTokens sest)
                             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

processSupportingTokens

public void processSupportingTokens(EncryptedSupportingTokens est)
                             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

processSupportingTokens

public void processSupportingTokens(EndorsingEncryptedSupportingTokens est)
                             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

processSupportingTokens

public void processSupportingTokens(SignedEndorsingEncryptedSupportingTokens est)
                             throws com.sun.xml.ws.policy.PolicyException
Throws:
com.sun.xml.ws.policy.PolicyException

getSignaturePolicy

protected com.sun.xml.wss.impl.policy.mls.SignaturePolicy getSignaturePolicy()

close

protected abstract void close()

isWSS11

public boolean isWSS11()

setWSS11

public void setWSS11(WSSAssertion wss11)

isIssuedTokenAsEncryptedSupportingToken

public boolean isIssuedTokenAsEncryptedSupportingToken()