Class ResponseStatusErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
se.swedenconnect.opensaml.saml2.response.ResponseStatusErrorException
- All Implemented Interfaces:
Serializable
Exception that indicates a non-successful status code received in a Response message.
- Author:
- Martin Lindström (martin@idsec.se)
- See Also:
-
Constructor Summary
ConstructorDescriptionResponseStatusErrorException
(org.opensaml.saml.saml2.core.Response response) Constructor.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. -
Method Summary
Modifier and TypeMethodDescriptionGets the issuer of the response.org.opensaml.saml.saml2.core.Response
Gets theResponse
object that was processed.Returns the ID of the Response.org.opensaml.saml.saml2.core.Status
Returns the status object.static String
statusToString
(org.opensaml.saml.saml2.core.Status status) Returns a textual representation of the status.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
- statusresponseId
- the response IDissuer
- the issuer of the response
-
-
Method Details
-
getResponse
public org.opensaml.saml.saml2.core.Response getResponse()Gets theResponse
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
Returns the ID of the Response.- Returns:
- the response ID
-
getIssuer
Gets the issuer of the response.- Returns:
- the issuer entityID
-
statusToString
Returns a textual representation of the status.- Parameters:
status
- the Status to print- Returns:
- a status string
-