Class AbstractStaxBindingHandler

    • Field Detail

      • timestampAdded

        protected boolean timestampAdded
      • signatureConfirmationAdded

        protected boolean signatureConfirmationAdded
      • encryptedTokensList

        protected Set<org.apache.xml.security.stax.ext.SecurePart> encryptedTokensList
      • endEncSuppTokMap

        protected Map<AbstractToken,​org.apache.xml.security.stax.ext.SecurePart> endEncSuppTokMap
      • endSuppTokMap

        protected Map<AbstractToken,​org.apache.xml.security.stax.ext.SecurePart> endSuppTokMap
      • sgndEndEncSuppTokMap

        protected Map<AbstractToken,​org.apache.xml.security.stax.ext.SecurePart> sgndEndEncSuppTokMap
      • sgndEndSuppTokMap

        protected Map<AbstractToken,​org.apache.xml.security.stax.ext.SecurePart> sgndEndSuppTokMap
      • outboundSecurityContext

        protected final org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext
    • Constructor Detail

      • AbstractStaxBindingHandler

        public AbstractStaxBindingHandler​(WSSSecurityProperties properties,
                                          org.apache.cxf.binding.soap.SoapMessage msg,
                                          AbstractBinding binding,
                                          org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext)
    • Method Detail

      • addUsernameToken

        protected org.apache.xml.security.stax.ext.SecurePart addUsernameToken​(UsernameToken usernameToken)
      • addIssuedToken

        protected org.apache.xml.security.stax.ext.SecurePart addIssuedToken​(AbstractToken token,
                                                                             SecurityToken secToken,
                                                                             boolean signed,
                                                                             boolean endorsing)
      • configureTimestamp

        protected void configureTimestamp​(org.apache.cxf.ws.policy.AssertionInfoMap aim)
      • configureLayout

        protected void configureLayout​(org.apache.cxf.ws.policy.AssertionInfoMap aim)
      • 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
      • 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

        protected void addSupportingTokens()
                                    throws Exception
        Throws:
        Exception
      • addSignatureParts

        protected void addSignatureParts​(Map<AbstractToken,​org.apache.xml.security.stax.ext.SecurePart> tokenMap)
      • addSignatureConfirmation

        protected void addSignatureConfirmation​(List<org.apache.xml.security.stax.ext.SecurePart> sigParts)
      • getSignedParts

        protected List<org.apache.xml.security.stax.ext.SecurePart> getSignedParts()
                                                                            throws SOAPException
        Identifies the portions of the message to be signed
        Throws:
        SOAPException
      • getEncryptedParts

        protected List<org.apache.xml.security.stax.ext.SecurePart> getEncryptedParts()
                                                                               throws SOAPException
        Identifies 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()