Class ResponseStatusErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
se.swedenconnect.opensaml.saml2.response.ResponseStatusErrorException
All Implemented Interfaces:
Serializable

public class ResponseStatusErrorException extends Exception
Exception that indicates a non-successful status code received in a Response message.
Author:
Martin Lindström (martin@idsec.se)
See Also:
  • Constructor Details

    • ResponseStatusErrorException

      public ResponseStatusErrorException(org.opensaml.saml.saml2.core.Response response)
      Constructor.
      Parameters:
      response - the response
    • ResponseStatusErrorException

      @Deprecated(forRemoval=true) public ResponseStatusErrorException(org.opensaml.saml.saml2.core.Status status, String responseId, String issuer)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor taking the error status and the response ID.
      Parameters:
      status - status
      responseId - the response ID
      issuer - the issuer of the response
  • Method Details

    • getResponse

      public org.opensaml.saml.saml2.core.Response getResponse()
      Gets the Response object that was processed.
      Returns:
      the Response object
    • getStatus

      public org.opensaml.saml.saml2.core.Status getStatus()
      Returns the status object.
      Returns:
      the status object
    • getResponseId

      public String getResponseId()
      Returns the ID of the Response.
      Returns:
      the response ID
    • getIssuer

      public String getIssuer()
      Gets the issuer of the response.
      Returns:
      the issuer entityID
    • statusToString

      public static String statusToString(org.opensaml.saml.saml2.core.Status status)
      Returns a textual representation of the status.
      Parameters:
      status - the Status to print
      Returns:
      a status string