public class LogoutResponse extends Object
| Constructor and Description |
|---|
LogoutResponse(Saml2Settings settings,
HttpRequest request)
Constructs the LogoutResponse object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Generates a Logout Response XML string.
|
void |
build(String inResponseTo)
Generates a Logout Response XML string.
|
String |
getEncodedLogoutResponse() |
String |
getEncodedLogoutResponse(Boolean deflated) |
String |
getError()
After execute a validation process, if fails this method returns the cause
|
String |
getId() |
String |
getIssuer()
Gets the Issuer from Logout Response.
|
String |
getLogoutResponseXml() |
SamlResponseStatus |
getSamlResponseStatus()
Gets the Status of the Logout Response.
|
String |
getStatus()
Gets the Status of the Logout Response.
|
Boolean |
isValid() |
Boolean |
isValid(String requestId)
Determines if the SAML LogoutResponse is valid
|
public LogoutResponse(Saml2Settings settings, HttpRequest request)
settings - OneLogin_Saml2_Settingsrequest - the HttpRequest object to be processed (Contains GET and POST parameters, request URL, ...).public String getEncodedLogoutResponse(Boolean deflated) throws IOException
deflated - If deflated or not the encoded Logout ResponseIOExceptionpublic String getEncodedLogoutResponse() throws IOException
IOExceptionpublic String getLogoutResponseXml()
public String getId()
public Boolean isValid(String requestId)
requestId - The ID of the LogoutRequest sent by this SP to the IdPpublic Boolean isValid()
public String getIssuer() throws XPathExpressionException
XPathExpressionExceptionpublic String getStatus() throws XPathExpressionException
XPathExpressionExceptionpublic SamlResponseStatus getSamlResponseStatus() throws ValidationError
ValidationErrorpublic void build(String inResponseTo)
inResponseTo - InResponseTo attribute value to bet set at the Logout Response.public void build()
public String getError()
Copyright © 2018. All rights reserved.