Class AbstractStaxBindingHandler
java.lang.Object
org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractCommonBindingHandler
org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractStaxBindingHandler
- Direct Known Subclasses:
StaxAsymmetricBindingHandler,StaxSymmetricBindingHandler,StaxTransportBindingHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<org.apache.xml.security.stax.ext.SecurePart>protected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> protected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> protected final org.apache.xml.security.stax.ext.OutboundSecurityContextprotected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> protected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> protected booleanprotected booleanFields inherited from class org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractCommonBindingHandler
message -
Constructor Summary
ConstructorsConstructorDescriptionAbstractStaxBindingHandler(WSSSecurityProperties properties, org.apache.cxf.binding.soap.SoapMessage msg, AbstractBinding binding, org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.xml.security.stax.ext.SecurePartaddIssuedToken(AbstractToken token, SecurityToken secToken, boolean signed, boolean endorsing) protected org.apache.xml.security.stax.ext.SecurePartaddKerberosToken(KerberosToken token, boolean signed, boolean endorsing, boolean encrypting) protected org.apache.xml.security.stax.ext.SecurePartaddSamlToken(SamlToken token, boolean signed, boolean endorsing) protected voidaddSignatureConfirmation(List<org.apache.xml.security.stax.ext.SecurePart> sigParts) protected voidaddSignatureParts(Map<AbstractToken, org.apache.xml.security.stax.ext.SecurePart> tokenMap) protected voidprotected org.apache.xml.security.stax.ext.SecurePartaddUsernameToken(UsernameToken usernameToken) protected voidconfigureLayout(org.apache.cxf.ws.policy.AssertionInfoMap aim) protected voidconfigureSignature(AbstractToken token, boolean attached) protected voidconfigureTimestamp(org.apache.cxf.ws.policy.AssertionInfoMap aim) protected voidprotected org.apache.xml.security.stax.securityToken.SecurityTokenfindInboundSecurityToken(org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event event) protected List<org.apache.xml.security.stax.ext.SecurePart>Identifies the portions of the message to be encryptedprotected org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifierprotected WSSSecurityPropertiesprotected List<org.apache.xml.security.stax.ext.SecurePart>Identifies the portions of the message to be signedprotected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(Collection<org.apache.cxf.ws.policy.AssertionInfo> tokenAssertions, boolean signed, boolean endorse) protected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(SupportingTokens suppTokens, boolean signed, boolean endorse) protected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(SupportingTokens suppTokens, boolean signed, boolean endorse, Map<AbstractToken, org.apache.xml.security.stax.ext.SecurePart> ret) protected voidhandleUsernameTokenSupportingToken(UsernameToken token, boolean endorse, boolean encryptedToken, Map<AbstractToken, org.apache.xml.security.stax.ext.SecurePart> ret) protected voidprotected voidprotected voidprotected voidstoreSecurityToken(AbstractToken policyToken, SecurityToken tok) Methods inherited from class org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractCommonBindingHandler
assertAlgorithmSuite, assertPolicy, assertPolicy, assertToken, assertTokenWrapper, assertTrustProperties, assertWSSProperties, getAllAssertionsByLocalname, getMessage, getSecurityToken, getWss10, isRequestor, isTokenRequired, unassertPolicy, unassertPolicy
-
Field Details
-
timestampAdded
protected boolean timestampAdded -
signatureConfirmationAdded
protected boolean signatureConfirmationAdded -
encryptedTokensList
-
endEncSuppTokMap
-
endSuppTokMap
-
sgndEndEncSuppTokMap
-
sgndEndSuppTokMap
-
outboundSecurityContext
protected final org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext
-
-
Constructor Details
-
AbstractStaxBindingHandler
public AbstractStaxBindingHandler(WSSSecurityProperties properties, org.apache.cxf.binding.soap.SoapMessage msg, AbstractBinding binding, org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext)
-
-
Method Details
-
addUsernameToken
-
addKerberosToken
protected org.apache.xml.security.stax.ext.SecurePart addKerberosToken(KerberosToken token, boolean signed, boolean endorsing, boolean encrypting) throws WSSecurityException, TokenStoreException -
addSamlToken
protected org.apache.xml.security.stax.ext.SecurePart addSamlToken(SamlToken token, boolean signed, boolean endorsing) throws WSSecurityException - Throws:
WSSecurityException
-
addIssuedToken
protected org.apache.xml.security.stax.ext.SecurePart addIssuedToken(AbstractToken token, SecurityToken secToken, boolean signed, boolean endorsing) -
storeSecurityToken
-
configureTimestamp
protected void configureTimestamp(org.apache.cxf.ws.policy.AssertionInfoMap aim) -
configureLayout
protected void configureLayout(org.apache.cxf.ws.policy.AssertionInfoMap aim) -
getProperties
-
configureSignature
- Throws:
WSSecurityException
-
getKeyIdentifierType
protected org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier getKeyIdentifierType(AbstractToken token) -
handleSupportingTokens
protected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(Collection<org.apache.cxf.ws.policy.AssertionInfo> tokenAssertions, boolean signed, boolean endorse) throws Exception - Throws:
Exception
-
handleSupportingTokens
protected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(SupportingTokens suppTokens, boolean signed, boolean endorse) throws Exception - Throws:
Exception
-
handleSupportingTokens
protected Map<AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(SupportingTokens suppTokens, boolean signed, boolean endorse, Map<AbstractToken, org.apache.xml.security.stax.ext.SecurePart> ret) throws Exception- Throws:
Exception
-
handleUsernameTokenSupportingToken
protected void handleUsernameTokenSupportingToken(UsernameToken token, boolean endorse, boolean encryptedToken, Map<AbstractToken, org.apache.xml.security.stax.ext.SecurePart> ret) throws Exception- Throws:
Exception
-
addSupportingTokens
- Throws:
Exception
-
addSignatureParts
protected void addSignatureParts(Map<AbstractToken, org.apache.xml.security.stax.ext.SecurePart> tokenMap) -
addSignatureConfirmation
-
getSignedParts
Identifies the portions of the message to be signed- Throws:
SOAPException
-
getEncryptedParts
protected List<org.apache.xml.security.stax.ext.SecurePart> getEncryptedParts() throws SOAPExceptionIdentifies the portions of the message to be encrypted- Throws:
SOAPException
-
findInboundSecurityToken
protected org.apache.xml.security.stax.securityToken.SecurityToken findInboundSecurityToken(org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event event) throws org.apache.xml.security.exceptions.XMLSecurityException - Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
removeSignatureIfSignedSAML
protected void removeSignatureIfSignedSAML() -
prependSignatureToSC
protected void prependSignatureToSC() -
enforceEncryptBeforeSigningWithSignedSAML
protected void enforceEncryptBeforeSigningWithSignedSAML() -
putCustomTokenAfterSignature
protected void putCustomTokenAfterSignature()
-