Class Soap
- java.lang.Object
- 
- org.keycloak.protocol.saml.profile.util.Soap
 
- 
 public final class Soap extends Object - Author:
- Pedro Igor
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSoap.SoapFaultBuilderstatic classSoap.SoapMessageBuilder
 - 
Constructor SummaryConstructors Constructor Description Soap()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Soap.SoapFaultBuildercreateFault()static Soap.SoapMessageBuildercreateMessage()static DocumentextractSoapMessage(InputStream inputStream)Returns Docuemnt based on the giveninputStreamwhich must contain a valid SOAP message.static DocumentextractSoapMessage(javax.xml.soap.SOAPMessage soapMessage)Returns Docuemnt based on the given SOAP message.static NodegetFirstChild(Node parent)Get the first direct child that is an XML element.static StringtoSamlHttpPostMessage(Document document)Returns a string encoded accordingly with the SAML HTTP POST Binding specification based on the giveninputStreamwhich must contain a valid SOAP message.
 
- 
- 
- 
Method Detail- 
createFaultpublic static Soap.SoapFaultBuilder createFault() 
 - 
createMessagepublic static Soap.SoapMessageBuilder createMessage() 
 - 
toSamlHttpPostMessagepublic static String toSamlHttpPostMessage(Document document) Returns a string encoded accordingly with the SAML HTTP POST Binding specification based on the given inputStreamwhich must contain a valid SOAP message.The resulting string is based on the Body of the SOAP message, which should map to a valid SAML message. - Parameters:
- document- the document containing a valid SOAP message with a Body that contains a SAML message
- Returns:
- a string encoded accordingly with the SAML HTTP POST Binding specification
 
 - 
extractSoapMessagepublic static Document extractSoapMessage(InputStream inputStream) Returns Docuemnt based on the given inputStreamwhich must contain a valid SOAP message.The resulting string is based on the Body of the SOAP message, which should map to a valid SAML message. - Parameters:
- inputStream- an InputStream consisting of a SOAPMessage
- Returns:
- A document containing the body of the SOAP message
 
 - 
extractSoapMessagepublic static Document extractSoapMessage(javax.xml.soap.SOAPMessage soapMessage) Returns Docuemnt based on the given SOAP message. The resulting string is based on the Body of the SOAP message, which should map to a valid SAML message. - Parameters:
- soapMessage- a SOAPMessage from which to extract the body
- Returns:
- A document containing the body of the SOAP message
 
 
- 
 
-