Class XmlSecOutInterceptor

  • 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 XmlSecOutInterceptor
    extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
    A new StAX-based interceptor for creating messages with XML Signature + Encryption content.
    • Field Detail

      • OUTPUT_STREAM_HOLDER

        public static final String OUTPUT_STREAM_HOLDER
    • Constructor Detail

      • XmlSecOutInterceptor

        public XmlSecOutInterceptor()
    • Method Detail

      • handleMessage

        public void handleMessage​(org.apache.cxf.message.Message message)
                           throws org.apache.cxf.interceptor.Fault
        Throws:
        org.apache.cxf.interceptor.Fault
      • setEncryptionProperties

        public void setEncryptionProperties​(EncryptionProperties properties)
      • setEncryptionKeyIdentifierType

        public void setEncryptionKeyIdentifierType​(String type)
      • setSymmetricEncAlgorithm

        public void setSymmetricEncAlgorithm​(String algo)
      • setKeyEncAlgorithm

        public void setKeyEncAlgorithm​(String algo)
      • setEncryptionDigestAlgorithm

        public void setEncryptionDigestAlgorithm​(String algo)
      • setKeyInfoMustBeAvailable

        public void setKeyInfoMustBeAvailable​(boolean use)
      • setSignatureAlgorithm

        public void setSignatureAlgorithm​(String algo)
      • setSignatureDigestAlgorithm

        public void setSignatureDigestAlgorithm​(String algo)
      • setSignatureKeyIdentifierType

        public void setSignatureKeyIdentifierType​(String type)
      • createEndingInterceptor

        public final org.apache.cxf.rs.security.xml.XmlSecOutInterceptor.XmlSecStaxOutInterceptorInternal createEndingInterceptor()
      • isSignRequest

        public boolean isSignRequest()
      • setSignRequest

        public void setSignRequest​(boolean signRequest)
      • isEncryptRequest

        public boolean isEncryptRequest()
      • setEncryptRequest

        public void setEncryptRequest​(boolean encryptRequest)
      • setElementsToEncrypt

        public void setElementsToEncrypt​(List<QName> elementsToEncrypt)
      • addElementToEncrypt

        public void addElementToEncrypt​(QName elementToEncrypt)
      • setElementsToSign

        public void setElementsToSign​(List<QName> elementsToSign)
      • addElementToSign

        public void addElementToSign​(QName elementToSign)
      • isEncryptSymmetricKey

        public boolean isEncryptSymmetricKey()
      • setEncryptSymmetricKey

        public void setEncryptSymmetricKey​(boolean encryptSymmetricKey)
      • getSymmetricKey

        public SecretKey getSymmetricKey()
      • setSymmetricKey

        public void setSymmetricKey​(SecretKey symmetricKey)