public class FSSOAPReceiver
extends javax.servlet.http.HttpServlet
SOAP
endpoint that handles federation SOAP
request.Constructor and Description |
---|
FSSOAPReceiver()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles post request.
|
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet.
|
void |
onMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SOAPMessage message)
Process the request.
|
protected SOAPMessage |
signResponse(SOAPMessage msg,
String idAttrName,
String id,
com.sun.identity.federation.jaxb.entityconfig.BaseConfigType hostedConfig)
Signs SOAP Response before sending it to the provider.
|
protected boolean |
verifyRequestSignature(Element elt,
SOAPMessage msg,
X509Certificate cert)
Verifies the signature on the request received from a remote trusted
provider.
|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- ServletConfig
objectjavax.servlet.ServletException
- if error occurrspublic void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
request
- http request objectresponse
- http response objectServletException,
- IOException if error occurrs.javax.servlet.ServletException
IOException
public void onMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SOAPMessage message)
request
- http request objectresponse
- http response objectmessage
- received soap messageprotected boolean verifyRequestSignature(Element elt, SOAPMessage msg, X509Certificate cert)
elt
- containing the logout request in the XML messagemsg
- request soap messagecert
- Certificate to be used in verifying the signature.true
if signature verfication successful;
otherwise return false.
protected SOAPMessage signResponse(SOAPMessage msg, String idAttrName, String id, com.sun.identity.federation.jaxb.entityconfig.BaseConfigType hostedConfig) throws SAMLException, FSMsgException
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 metaSAMLException,
- FSMsgException if error occurrsSAMLException
FSMsgException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.