Class SoapUtils
java.lang.Object
org.frankframework.soap.SoapUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis implementation does not use a LOCALE and therefor does not rely on eitherorg/apache/xml/security/resource/xmlsecurity_en.propertiesor a JVM defaultcom/sun/org/apache/xml/internal/security/resource/xmlsecurity_en.properties. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessagedecryptMessage(Message soapMessage, KeyStore keystore, String certificateName, String certificatePassword, boolean removeSecurityHeader) static MessageencryptMessage(Message soapMessage, KeyStore keystore, String certificateName, SecretKey symmetricKey, boolean includeCertificateInMessage) static MessagesignMessage(Message soapMessage, KeyStore keystore, String certificateName, String certificatePassword, boolean includeCertificateInMessage) static @NonNull DocumenttoSoapDocument(Message soapMessage) static MessageverifyMessage(Message soapMessage, KeyStore keystore, String certificateName, String certificatePassword, boolean removeSecurityHeader)
-
Method Details
-
toSoapDocument
public static @NonNull Document toSoapDocument(Message soapMessage) throws jakarta.xml.soap.SOAPException, IOException - Throws:
jakarta.xml.soap.SOAPExceptionIOException
-
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.SOAPExceptionIOExceptionorg.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.SOAPExceptionIOExceptionorg.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.SOAPExceptionIOExceptionorg.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.SOAPExceptionIOExceptionorg.apache.wss4j.common.ext.WSSecurityException
-