Class SoapUtils

java.lang.Object
org.frankframework.soap.SoapUtils

public class SoapUtils extends Object
  • Method Details

    • toSoapDocument

      public static @NonNull Document toSoapDocument(Message soapMessage) throws jakarta.xml.soap.SOAPException, IOException
      Throws:
      jakarta.xml.soap.SOAPException
      IOException
    • encryptMessage

      public static Message encryptMessage(Message soapMessage, KeyStore keystore, String certificateName, SecretKey symmetricKey, boolean includeCertificateInMessage) throws jakarta.xml.soap.SOAPException, IOException, org.apache.wss4j.common.ext.WSSecurityException
      Throws:
      jakarta.xml.soap.SOAPException
      IOException
      org.apache.wss4j.common.ext.WSSecurityException
    • decryptMessage

      public static Message decryptMessage(Message soapMessage, KeyStore keystore, String certificateName, String certificatePassword, boolean removeSecurityHeader) throws jakarta.xml.soap.SOAPException, IOException, org.apache.wss4j.common.ext.WSSecurityException
      Throws:
      jakarta.xml.soap.SOAPException
      IOException
      org.apache.wss4j.common.ext.WSSecurityException
    • signMessage

      public static Message signMessage(Message soapMessage, KeyStore keystore, String certificateName, String certificatePassword, boolean includeCertificateInMessage) throws jakarta.xml.soap.SOAPException, IOException, org.apache.wss4j.common.ext.WSSecurityException
      Throws:
      jakarta.xml.soap.SOAPException
      IOException
      org.apache.wss4j.common.ext.WSSecurityException
    • verifyMessage

      public static Message verifyMessage(Message soapMessage, KeyStore keystore, String certificateName, String certificatePassword, boolean removeSecurityHeader) throws jakarta.xml.soap.SOAPException, IOException, org.apache.wss4j.common.ext.WSSecurityException
      Throws:
      jakarta.xml.soap.SOAPException
      IOException
      org.apache.wss4j.common.ext.WSSecurityException