public class LogoutRequest extends Object
| Constructor and Description |
|---|
LogoutRequest(Saml2Settings settings)
Constructs the LogoutRequest object.
|
LogoutRequest(Saml2Settings settings,
HttpRequest request)
Constructs the LogoutRequest object.
|
LogoutRequest(Saml2Settings settings,
HttpRequest request,
String nameId,
String sessionIndex)
Constructs the LogoutRequest object.
|
LogoutRequest(Saml2Settings settings,
HttpRequest request,
String nameId,
String sessionIndex,
String nameIdFormat)
Constructs the LogoutRequest object.
|
LogoutRequest(Saml2Settings settings,
HttpRequest request,
String nameId,
String sessionIndex,
String nameIdFormat,
String nameIdNameQualifier)
Constructs the LogoutRequest object.
|
LogoutRequest(Saml2Settings settings,
HttpRequest request,
String nameId,
String sessionIndex,
String nameIdFormat,
String nameIdNameQualifier,
String nameIdSPNameQualifier)
Constructs the LogoutRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEncodedLogoutRequest() |
String |
getEncodedLogoutRequest(Boolean deflated) |
String |
getError()
After execute a validation process, if fails this method returns the cause
|
String |
getId() |
static String |
getId(Document samlLogoutRequestDocument)
Returns the ID of the Logout Request Document.
|
static String |
getId(String samlLogoutRequestString)
Returns the ID of the Logout Request String.
|
static String |
getIssuer(Document samlLogoutRequestDocument)
Gets the Issuer from Logout Request Document.
|
static String |
getIssuer(String samlLogoutRequestString)
Gets the Issuer from Logout Request String.
|
String |
getLogoutRequestXml() |
static String |
getNameId(Document samlLogoutRequestDocument)
Gets the NameID value provided from the SAML Logout Request Document.
|
static String |
getNameId(Document samlLogoutRequestDocument,
PrivateKey key)
Gets the NameID value provided from the SAML Logout Request Document.
|
static String |
getNameId(String samlLogoutRequestString)
Gets the NameID value provided from the SAML Logout Request String.
|
static String |
getNameId(String samlLogoutRequestString,
PrivateKey key)
Gets the NameID value provided from the SAML Logout Request String.
|
static Map<String,String> |
getNameIdData(Document samlLogoutRequestDocument,
PrivateKey key)
Gets the NameID Data from the the Logout Request Document.
|
static Map<String,String> |
getNameIdData(String samlLogoutRequestString,
PrivateKey key)
Gets the NameID Data from the the Logout Request String.
|
static List<String> |
getSessionIndexes(Document samlLogoutRequestDocument)
Gets the SessionIndexes from the LogoutRequest.
|
static List<String> |
getSessionIndexes(String samlLogoutRequestString)
Gets the SessionIndexes from the LogoutRequest.
|
Boolean |
isValid()
Determines if the SAML LogoutRequest is valid or not
|
public String id
public LogoutRequest(Saml2Settings settings, HttpRequest request, String nameId, String sessionIndex, String nameIdFormat, String nameIdNameQualifier, String nameIdSPNameQualifier) throws XMLEntityException
settings - OneLogin_Saml2_Settingsrequest - the HttpRequest object to be processed (Contains GET and POST parameters, request URL, ...).nameId - The NameID that will be set in the LogoutRequest.sessionIndex - The SessionIndex (taken from the SAML Response in the SSO process).nameIdFormat - The nameIdFormat that will be set in the LogoutRequest.nameIdNameQualifier - The NameID NameQualifier that will be set in the LogoutRequest.nameIdSPNameQualifier - The SP Name Qualifier that will be set in the LogoutRequest.XMLEntityExceptionpublic LogoutRequest(Saml2Settings settings, HttpRequest request, String nameId, String sessionIndex, String nameIdFormat, String nameIdNameQualifier) throws XMLEntityException
settings - OneLogin_Saml2_Settingsrequest - the HttpRequest object to be processed (Contains GET and POST parameters, request URL, ...).nameId - The NameID that will be set in the LogoutRequest.sessionIndex - The SessionIndex (taken from the SAML Response in the SSO process).nameIdFormat - The nameIdFormat that will be set in the LogoutRequest.nameIdNameQualifier - The NameID NameQualifier will be set in the LogoutRequest.XMLEntityExceptionpublic LogoutRequest(Saml2Settings settings, HttpRequest request, String nameId, String sessionIndex, String nameIdFormat) throws XMLEntityException
settings - OneLogin_Saml2_Settingsrequest - the HttpRequest object to be processed (Contains GET and POST parameters, request URL, ...).nameId - The NameID that will be set in the LogoutRequest.sessionIndex - The SessionIndex (taken from the SAML Response in the SSO process).nameIdFormat - The nameIdFormat that will be set in the LogoutRequest.XMLEntityExceptionpublic LogoutRequest(Saml2Settings settings, HttpRequest request, String nameId, String sessionIndex) throws XMLEntityException
settings - OneLogin_Saml2_Settingsrequest - the HttpRequest object to be processed (Contains GET and POST parameters, request URL, ...).nameId - The NameID that will be set in the LogoutRequest.sessionIndex - The SessionIndex (taken from the SAML Response in the SSO process).XMLEntityExceptionpublic LogoutRequest(Saml2Settings settings) throws XMLEntityException
settings - OneLogin_Saml2_SettingsXMLEntityExceptionpublic LogoutRequest(Saml2Settings settings, HttpRequest request) throws XMLEntityException
settings - OneLogin_Saml2_Settingsrequest - the HttpRequest object to be processed (Contains GET and POST parameters, request URL, ...).XMLEntityExceptionpublic String getEncodedLogoutRequest(Boolean deflated) throws IOException
deflated - If deflated or not the encoded Logout RequestIOExceptionpublic String getEncodedLogoutRequest() throws IOException
IOExceptionpublic String getLogoutRequestXml()
public Boolean isValid() throws Exception
Exceptionpublic static String getId(Document samlLogoutRequestDocument)
samlLogoutRequestDocument - A DOMDocument object loaded from the SAML Logout Request.public static String getId(String samlLogoutRequestString)
samlLogoutRequestString - A Logout Request string.public static Map<String,String> getNameIdData(Document samlLogoutRequestDocument, PrivateKey key) throws Exception
samlLogoutRequestDocument - A DOMDocument object loaded from the SAML Logout Request.key - The SP key to decrypt the NameID if encryptedExceptionpublic static Map<String,String> getNameIdData(String samlLogoutRequestString, PrivateKey key) throws Exception
samlLogoutRequestString - A DOMDocument object loaded from the SAML Logout Request.key - The SP key to decrypt the NameID if encryptedExceptionpublic static String getNameId(Document samlLogoutRequestDocument, PrivateKey key) throws Exception
samlLogoutRequestDocument - A DOMDocument object loaded from the SAML Logout Request.key - The SP key to decrypt the NameID if encryptedExceptionpublic static String getNameId(Document samlLogoutRequestDocument) throws Exception
samlLogoutRequestDocument - A DOMDocument object loaded from the SAML Logout Request.Exceptionpublic static String getNameId(String samlLogoutRequestString, PrivateKey key) throws Exception
samlLogoutRequestString - A Logout Request string.key - The SP key to decrypt the NameID if encryptedExceptionpublic static String getNameId(String samlLogoutRequestString) throws Exception
samlLogoutRequestString - A Logout Request string.Exceptionpublic static String getIssuer(Document samlLogoutRequestDocument) throws XPathExpressionException
samlLogoutRequestDocument - A DOMDocument object loaded from the SAML Logout Request.XPathExpressionExceptionpublic static String getIssuer(String samlLogoutRequestString) throws XPathExpressionException
samlLogoutRequestString - A Logout Request string.XPathExpressionExceptionpublic static List<String> getSessionIndexes(Document samlLogoutRequestDocument) throws XPathExpressionException
samlLogoutRequestDocument - A DOMDocument object loaded from the SAML Logout Request.XPathExpressionExceptionpublic static List<String> getSessionIndexes(String samlLogoutRequestString) throws XPathExpressionException
samlLogoutRequestString - A Logout Request string.XPathExpressionExceptionpublic String getError()
public String getId()
Copyright © 2019. All rights reserved.