Package com.onelogin.saml2.logout
Class LogoutResponseParams
java.lang.Object
com.onelogin.saml2.logout.LogoutResponseParams
Input parameters for a SAML 2 logout response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringId of the logout request the response refers to.private final SamlResponseStatusResponse status. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a logout response with noinResponseToattribute and a response status with a top-levelConstants.STATUS_SUCCESSstatus code.protectedCreate a set of logout request input parameters, by copying them from another set.LogoutResponseParams(String inResponseTo) Creates a logout response with a response status with a top-levelConstants.STATUS_SUCCESSstatus code.LogoutResponseParams(String inResponseTo, SamlResponseStatus responseStatus) Creates a logout response.LogoutResponseParams(String inResponseTo, String statusCode) Creates a logout response. -
Method Summary
Modifier and TypeMethodDescriptionReturns the id of the logout request this response refers to.Returns the response status.
-
Field Details
-
inResponseTo
Id of the logout request the response refers to. -
responseStatus
Response status.
-
-
Constructor Details
-
LogoutResponseParams
public LogoutResponseParams()Creates a logout response with noinResponseToattribute and a response status with a top-levelConstants.STATUS_SUCCESSstatus code. -
LogoutResponseParams
Creates a logout response with a response status with a top-levelConstants.STATUS_SUCCESSstatus code.- Parameters:
inResponseTo- the id of the logout request the response refers to; may benullif such id cannot be determined (possibly because the request is malformed)
-
LogoutResponseParams
Creates a logout response.- Parameters:
inResponseTo- the id of the logout request the response refers to; may benullif such id cannot be determined (possibly because the request is malformed)statusCode- the top-level status code code to set on the response
-
LogoutResponseParams
public LogoutResponseParams(String inResponseTo, SamlResponseStatus responseStatus) throws NullPointerException Creates a logout response.- Parameters:
inResponseTo- the id of the logout request the response refers to; may benullif such id cannot be determined (possibly because the request is malformed)responseStatus- the response status; should not benull- Throws:
NullPointerException- if the specified response status isnull
-
LogoutResponseParams
Create a set of logout request input parameters, by copying them from another set.- Parameters:
source- the source set of logout request input parameters
-
-
Method Details
-
getResponseStatus
Returns the response status.- Returns:
- the response status
-
getInResponseTo
Returns the id of the logout request this response refers to.- Returns:
- the
inResponseTo
-