Class FSSOAPReceiver
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- com.sun.identity.federation.services.FSSOAPReceiver
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class FSSOAPReceiver extends jakarta.servlet.http.HttpServletSOAPendpoint that handles federationSOAPrequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FSSOAPReceiver()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Handles post request.voidinit(jakarta.servlet.ServletConfig config)Initializes the servlet.voidonMessage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.xml.soap.SOAPMessage message)Process the request.protected jakarta.xml.soap.SOAPMessagesignResponse(jakarta.xml.soap.SOAPMessage msg, String idAttrName, String id, com.sun.identity.federation.jaxb.entityconfig.BaseConfigType hostedConfig)Signs SOAP Response before sending it to the provider.protected booleanverifyRequestSignature(Element elt, jakarta.xml.soap.SOAPMessage msg, X509Certificate cert)Verifies the signature on the request received from a remote trusted provider.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletExceptionInitializes the servlet.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.GenericServlet- Parameters:
config-ServletConfigobject- Throws:
jakarta.servlet.ServletException- if error occurrs
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOExceptionHandles post request.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
request- http request objectresponse- http response object- Throws:
jakarta.servlet.ServletExceptionIOException
-
onMessage
public void onMessage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.xml.soap.SOAPMessage message)Process the request.- Parameters:
request- http request objectresponse- http response objectmessage- received soap message
-
verifyRequestSignature
protected boolean verifyRequestSignature(Element elt, jakarta.xml.soap.SOAPMessage msg, X509Certificate cert)
Verifies the signature on the request received from a remote trusted provider.- Parameters:
elt- containing the logout request in the XML messagemsg- request soap messagecert- Certificate to be used in verifying the signature.- Returns:
- boolean
trueif signature verfication successful; otherwise returnfalse.
-
signResponse
protected jakarta.xml.soap.SOAPMessage signResponse(jakarta.xml.soap.SOAPMessage msg, String idAttrName, String id, com.sun.identity.federation.jaxb.entityconfig.BaseConfigType hostedConfig) throws SAMLException, FSMsgExceptionSigns SOAP Response before sending it to the provider.- Parameters:
msg- the response message to be sent to provideridAttrName- name of the id attribute to be signedid- the value of the id attributer to be signedhostedConfig- hosted provider's extended meta- Returns:
- SOAPMessage the signed response message
- Throws:
SAMLExceptionFSMsgException
-
-