Package com.onelogin.saml2.logout
Class LogoutResponseParams
- java.lang.Object
-
- com.onelogin.saml2.logout.LogoutResponseParams
-
public class LogoutResponseParams extends java.lang.ObjectInput parameters for a SAML 2 logout response.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringinResponseToId of the logout request the response refers to.private SamlResponseStatusresponseStatusResponse status.
-
Constructor Summary
Constructors Modifier Constructor Description LogoutResponseParams()Creates a logout response with noinResponseToattribute and a response status with a top-levelConstants.STATUS_SUCCESSstatus code.protectedLogoutResponseParams(LogoutResponseParams source)Create a set of logout request input parameters, by copying them from another set.LogoutResponseParams(java.lang.String inResponseTo)Creates a logout response with a response status with a top-levelConstants.STATUS_SUCCESSstatus code.LogoutResponseParams(java.lang.String inResponseTo, SamlResponseStatus responseStatus)Creates a logout response.LogoutResponseParams(java.lang.String inResponseTo, java.lang.String statusCode)Creates a logout response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInResponseTo()Returns the id of the logout request this response refers to.SamlResponseStatusgetResponseStatus()Returns the response status.
-
-
-
Field Detail
-
inResponseTo
private final java.lang.String inResponseTo
Id of the logout request the response refers to.
-
responseStatus
private final SamlResponseStatus responseStatus
Response status.
-
-
Constructor Detail
-
LogoutResponseParams
public LogoutResponseParams()
Creates a logout response with noinResponseToattribute and a response status with a top-levelConstants.STATUS_SUCCESSstatus code.
-
LogoutResponseParams
public LogoutResponseParams(java.lang.String inResponseTo)
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
public LogoutResponseParams(java.lang.String inResponseTo, java.lang.String statusCode)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(java.lang.String inResponseTo, SamlResponseStatus responseStatus) throws java.lang.NullPointerExceptionCreates 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:
java.lang.NullPointerException- if the specified response status isnull
-
LogoutResponseParams
protected LogoutResponseParams(LogoutResponseParams source)
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 Detail
-
getResponseStatus
public SamlResponseStatus getResponseStatus()
Returns the response status.- Returns:
- the response status
-
getInResponseTo
public java.lang.String getInResponseTo()
Returns the id of the logout request this response refers to.- Returns:
- the
inResponseTo
-
-