Package com.sun.identity.saml.servlet
Class SAMLSOAPReceiver
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- com.sun.identity.saml.servlet.SAMLSOAPReceiver
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class SAMLSOAPReceiver extends jakarta.servlet.http.HttpServletThis class defines a SOAP Receiver which supports SOAP over HTTP binding. It's the receiver of SAML requests from external parties for any authentication ,authorization or attribute information for aSubject. Its response which is anAssertionis used by the caller to enable an SSO solution or allow access to resource based on theStatementcontained in the assertion sent by it. It supports the following functions:1- Accepts an artifact request and returns corresponding assertion. 2- Accepts assertion id request and returns corresponding assertion. 3- accept the authentication query and return authentication assertion. 4- Accept authorization query and return authorization decision assertion. 5- Accept attribute query and return attribute assertion.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringlocalSAMLServiceIDWhen initialized it represents ID of the local server.
-
Constructor Summary
Constructors Constructor Description SAMLSOAPReceiver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static SetcheckCaller(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)Protected method to check the caller to the servlet.voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)Processes request coming from SOAP.voidinit(jakarta.servlet.ServletConfig config)Initializes the servlet.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
localSAMLServiceID
public static String localSAMLServiceID
When initialized it represents ID of the local server. It has the format of server_protocol://server_host:server_port. It is used to identify whether the system is in server mode or client mode.
-
-
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 occurred during initialization.
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOExceptionProcesses request coming from SOAP.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
req-HttpServletRequestobject.resp-HttpServletResponseobject.- Throws:
jakarta.servlet.ServletException- if there is an error.IOException- if there is an error.
-
checkCaller
protected static Set checkCaller(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException
Protected method to check the caller to the servlet. Returns a set of sourceid whose hostlist contains the passed in certificate's nick name or HttpServletRequest's remote IP address if valid. Else null is returned.- Throws:
jakarta.servlet.ServletException
-
-