com.sun.identity.saml2.profile
Class SPACSUtils
java.lang.Object
com.sun.identity.saml2.profile.SPACSUtils
public class SPACSUtils
- extends Object
This class is used by a service provider (SP) to process the response from
an identity provider for the SP's Assertion Consumer Service.
processResponseForFedlet
public static Map processResponseForFedlet(HttpServletRequest request,
HttpServletResponse response)
throws SAML2Exception,
SessionException
- 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 a
java.util.Map
whose keys
are attribute names and values are
java.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.
- Returns:
Map
which holds result of the processing.
- Throws:
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.
ServletException
- if the processing failed due to request error.