Package com.sun.identity.saml2.profile
Class SPACSUtils
java.lang.Object
com.sun.identity.saml2.profile.SPACSUtils
This class is used by a service provider (SP) to process the response from
an identity provider for the SP's Assertion Consumer Service.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map
processResponseForFedlet
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter out) Processes response from Identity Provider to Fedlet (SP).
-
Method Details
-
processResponseForFedlet
@Supported public static Map processResponseForFedlet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter out) throws com.sun.identity.saml2.common.SAML2Exception, IOException, SessionException, javax.servlet.ServletException Processes response from Identity Provider to Fedlet (SP). This will do all required protocol processing, include signature, issuer and audience validation etc. A map containing processing result will be returned.
Here is a list of keys and values for the returned map:
SAML2Constants.ATTRIBUTE_MAP -- Attribute map containing all attributes passed down from IDP inside the Assertion. The value is ajava.util.Map
whose keys are attribute names and values arejava.util.Set
of string values for the attributes.
SAML2Constants.RELAY_STATE -- Relay state, value is a string
SAML2Constants.IDPENTITYID -- IDP entity ID, value is a string
SAML2Constants.RESPONSE -- Response object, value is an instance of com.sun.identity.saml2.protocol.Response SAML2Constants.ASSERTION -- Assertion object, value is an instance of com.sun.identity.saml2.assertion.Assertion SAML2Constants.SUBJECT -- Subject object, value is an instance of com.sun.identity.saml2.assertion.Subject SAML2Constants.NAMEID -- NameID object, value is an instance of com.sun.identity.saml2.assertion.NameID- Parameters:
request
- HTTP Servlet requestresponse
- HTTP Servlet response.out
- the print writer for writing out presentation- Returns:
Map
which holds result of the processing.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the processing failed due to server error.IOException
- if the processing failed due to IO error.SessionException
- if the processing failed due to session error.javax.servlet.ServletException
- if the processing failed due to request error.
-