Class ResponseInfo


  • public class ResponseInfo
    extends CacheObject
    This class stores information about the response made to the Service Provider.
    • Constructor Detail

      • ResponseInfo

        public ResponseInfo​(Response response,
                            String binding,
                            String relayState)
        Constructor creates the ResponseInfo.
        Parameters:
        response - the Response
        binding - Profile binding used, one of the following values: SAML2Constants.HTTP_POST, SAML2Constants.HTTP_ARTIFACT, SAML2Constants.PAOS
        relayState - relayState retrieved from ECP RelayState.
      • ResponseInfo

        public ResponseInfo()
        Needed for deserialization.
    • Method Detail

      • getResponse

        public Response getResponse()
        Returns the Response object.
        Returns:
        the Response object.
      • getRelayState

        public String getRelayState()
        Returns the relayState.
        Returns:
        the relayState.
      • getProfileBinding

        public String getProfileBinding()
        Returns the profile binding, one of the following values: null, SAML2Constants.HTTP_POST, SAML2Constants.HTTP_ARTIFACT, SAML2Constants.PAOS
        Returns:
        the binding.
      • setAssertion

        public void setAssertion​(Assertion assertion)
        Sets the authn assertion
        Parameters:
        assertion - the authn assertion in the response
      • getAssertion

        public Assertion getAssertion()
        Returns the authn assertion
        Returns:
        the authn assertion
      • setAttributeMap

        public void setAttributeMap​(Map attrs)
        Sets the map of the attributes
        Parameters:
        attrs - the attribute map
      • getAttributeMap

        public Map getAttributeMap()
        Returns the map of the atrributes
        Returns:
        the map of the atrributes
      • setNameId

        public void setNameId​(NameID id)
        Sets the NameId
        Parameters:
        id - the NameId in the assertion
      • getNameId

        public NameID getNameId()
        Returns the NameID
        Returns:
        the NameID
      • setSessionIndex

        public void setSessionIndex​(String index)
        Sets SessionIndex.
        Parameters:
        index - SessionIndex of the session
      • getSessionIndex

        public String getSessionIndex()
        Returns the SessionIndex.
        Returns:
        the SessionIndex
      • isLocalLogin

        public boolean isLocalLogin()
        Tells whether the user has been redirected to perform local login.
        Returns:
        true if the user was sent to perform local login.
      • setIsLocalLogin

        public void setIsLocalLogin​(boolean isLocalLogin)
        Sets the isLocalLogin flag.
        Parameters:
        isLocalLogin - The isLocalLogin flag.