Class SupportingTokensProcessor
- java.lang.Object
-
- com.sun.xml.ws.security.impl.policyconv.SupportingTokensProcessor
-
- Direct Known Subclasses:
EncryptedSupportingTokensProcessor,EndorsingSupportingTokensProcessor,SignedSupportingTokensProcessor
public class SupportingTokensProcessor extends Object
- Author:
- K.Venugopal@sun.com
-
-
Field Summary
Fields Modifier and Type Field Description protected Bindingbindingprotected booleanbuildEPprotected booleanbuildSPprotected EncryptionAssertionProcessoreAPprotected SignedPartsemptySPprotected EncryptionPolicyencryptionPolicyprotected ArrayList<EncryptionPolicy>epListprotected EncryptionTargetCreatoretcprotected IntegrityAssertionProcessoriAPprotected PolicyIDpidprotected XWSSPolicyContainerpolicyContainerprotected SignaturePolicysignaturePolicyprotected ArrayList<SignaturePolicy>spListprotected SupportingTokensstprotected SignatureTargetCreatorstcprotected TokenProcessortokenProcessor
-
Constructor Summary
Constructors Modifier Constructor Description protectedSupportingTokensProcessor()SupportingTokensProcessor(SupportingTokens st, TokenProcessor tokenProcessor, Binding binding, XWSSPolicyContainer container, SignaturePolicy sp, EncryptionPolicy ep, PolicyID pid)Creates a new instance of SupportingTokensProcessor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTargets()protected voidaddToPrimarySignature(WSSPolicy policy, com.sun.xml.ws.security.policy.Token token)protected voidcollectSignaturePolicies(com.sun.xml.ws.security.policy.Token token)protected voidcorrectSAMLBinding(WSSPolicy policy)protected voidcreateSupportingSignature(com.sun.xml.ws.security.policy.Token token)protected voidencryptToken(com.sun.xml.ws.security.policy.Token token, com.sun.xml.ws.security.policy.SecurityPolicyVersion spVersion)protected voidendorseSignature(SignaturePolicy sp)protected SignedPartsgetEmptySignedParts(Iterator itr)protected ArrayList<EncryptionPolicy>getEPList()protected QNamegetQName(WSSPolicy token)protected ArrayList<SignaturePolicy>getSPList()protected voidpopulateEncryptionPolicy()protected voidpopulateSignaturePolicy()voidprocess()protected voidprotectToken(WSSPolicy token, SignaturePolicy sp)
-
-
-
Field Detail
-
tokenProcessor
protected TokenProcessor tokenProcessor
-
stc
protected SignatureTargetCreator stc
-
etc
protected EncryptionTargetCreator etc
-
binding
protected Binding binding
-
policyContainer
protected XWSSPolicyContainer policyContainer
-
signaturePolicy
protected SignaturePolicy signaturePolicy
-
encryptionPolicy
protected EncryptionPolicy encryptionPolicy
-
st
protected SupportingTokens st
-
iAP
protected IntegrityAssertionProcessor iAP
-
eAP
protected EncryptionAssertionProcessor eAP
-
spList
protected ArrayList<SignaturePolicy> spList
-
epList
protected ArrayList<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, SignaturePolicy sp, 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(com.sun.xml.ws.security.policy.Token token) throws com.sun.xml.ws.policy.PolicyException- Throws:
com.sun.xml.ws.policy.PolicyException
-
createSupportingSignature
protected void createSupportingSignature(com.sun.xml.ws.security.policy.Token token) throws com.sun.xml.ws.policy.PolicyException- Throws:
com.sun.xml.ws.policy.PolicyException
-
addToPrimarySignature
protected void addToPrimarySignature(WSSPolicy policy, com.sun.xml.ws.security.policy.Token token) throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
-
endorseSignature
protected void endorseSignature(SignaturePolicy sp)
-
getSPList
protected ArrayList<SignaturePolicy> getSPList()
-
getEPList
protected ArrayList<EncryptionPolicy> getEPList()
-
encryptToken
protected void encryptToken(com.sun.xml.ws.security.policy.Token token, com.sun.xml.ws.security.policy.SecurityPolicyVersion spVersion) throws com.sun.xml.ws.policy.PolicyException- Throws:
com.sun.xml.ws.policy.PolicyException
-
getEmptySignedParts
protected SignedParts getEmptySignedParts(Iterator itr)
-
addTargets
protected void addTargets()
-
populateSignaturePolicy
protected void populateSignaturePolicy()
-
populateEncryptionPolicy
protected void populateEncryptionPolicy()
-
protectToken
protected void protectToken(WSSPolicy token, SignaturePolicy sp)
-
correctSAMLBinding
protected void correctSAMLBinding(WSSPolicy policy)
-
-