Class XmlEncOutInterceptor

java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.apache.cxf.rs.security.xml.AbstractXmlSecOutInterceptor
org.apache.cxf.rs.security.xml.XmlEncOutInterceptor
All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

public class XmlEncOutInterceptor extends AbstractXmlSecOutInterceptor
  • Constructor Details

    • XmlEncOutInterceptor

      public XmlEncOutInterceptor()
  • Method Details

    • setEncryptionProperties

      public void setEncryptionProperties(EncryptionProperties props)
    • setKeyIdentifierType

      public void setKeyIdentifierType(String type)
    • setSymmetricEncAlgorithm

      public void setSymmetricEncAlgorithm(String algo)
    • setKeyEncAlgorithm

      public void setKeyEncAlgorithm(String algo)
    • setDigestAlgorithm

      public void setDigestAlgorithm(String algo)
    • processDocument

      protected Document processDocument(org.apache.cxf.message.Message message, Document payloadDoc) throws Exception
      Specified by:
      processDocument in class AbstractXmlSecOutInterceptor
      Throws:
      Exception
    • encryptDocument

      protected Document encryptDocument(org.apache.cxf.message.Message message, Document payloadDoc) throws Exception
      Throws:
      Exception
    • encryptSymmetricKey

      protected byte[] encryptSymmetricKey(byte[] keyBytes, X509Certificate remoteCert, String keyEncAlgo, String digestAlgo) throws org.apache.wss4j.common.ext.WSSecurityException
      Throws:
      org.apache.wss4j.common.ext.WSSecurityException
    • createCipherValue

      protected Element createCipherValue(Document doc, Element encryptedKey)
    • createEncryptedKeyElement

      protected Element createEncryptedKeyElement(Document encryptedDataDoc, String keyEncAlgo, String digestAlgo)
    • createEncryptedDataElement

      protected Element createEncryptedDataElement(Document encryptedDataDoc, String symEncAlgo)