PHP Класс OneLogin_Saml2_LogoutRequest

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$id string Contains the ID of the Logout Request

Защищенные свойства (Protected)

Свойство Тип Описание
$_logoutRequest string SAML Logout Request
$_settings OneLogin_Saml2_Settings Object that represents the setting info

Открытые методы

Метод Описание
__construct ( OneLogin_Saml2_Settings $settings, string | null $request = null, string | null $nameId = null, string | null $sessionIndex = null, string | null $nameIdFormat = null ) Constructs the Logout Request object.
getError ( ) * After execute a validation process, if fails this method returns the cause
getID ( string | DOMDocument $request ) : string Returns the ID of the Logout Request.
getIssuer ( string | DOMDocument $request ) : string | null Gets the Issuer of the Logout Request.
getNameId ( string | DOMDocument $request, string | null $key = null ) : string Gets the NameID of the Logout Request.
getNameIdData ( string | DOMDocument $request, string | null $key = null ) : array Gets the NameID Data of the the Logout Request.
getRequest ( boolean | null $deflate = null ) : string Returns the Logout Request defated, base64encoded, unsigned
getSessionIndexes ( string | DOMDocument $request ) : array Gets the SessionIndexes from the Logout Request.
isValid ( $retrieveParametersFromServer = false ) : boolean Checks if the Logout Request recieved is valid.

Описание методов

__construct() публичный Метод

Constructs the Logout Request object.
public __construct ( OneLogin_Saml2_Settings $settings, string | null $request = null, string | null $nameId = null, string | null $sessionIndex = null, string | null $nameIdFormat = null )
$settings OneLogin_Saml2_Settings Settings
$request string | null A UUEncoded Logout Request.
$nameId string | null The NameID that will be set in the LogoutRequest.
$sessionIndex string | null The SessionIndex (taken from the SAML Response in the SSO process).
$nameIdFormat string | null The NameID Format will be set in the LogoutRequest.

getError() публичный Метод

* After execute a validation process, if fails this method returns the cause
public getError ( )

getID() публичный статический Метод

Returns the ID of the Logout Request.
public static getID ( string | DOMDocument $request ) : string
$request string | DOMDocument Logout Request Message
Результат string ID

getIssuer() публичный статический Метод

Gets the Issuer of the Logout Request.
public static getIssuer ( string | DOMDocument $request ) : string | null
$request string | DOMDocument Logout Request Message
Результат string | null $issuer The Issuer

getNameId() публичный статический Метод

Gets the NameID of the Logout Request.
public static getNameId ( string | DOMDocument $request, string | null $key = null ) : string
$request string | DOMDocument Logout Request Message
$key string | null The SP key
Результат string Name ID Value

getNameIdData() публичный статический Метод

Gets the NameID Data of the the Logout Request.
public static getNameIdData ( string | DOMDocument $request, string | null $key = null ) : array
$request string | DOMDocument Logout Request Message
$key string | null The SP key
Результат array Name ID Data (Value, Format, NameQualifier, SPNameQualifier)

getRequest() публичный Метод

Returns the Logout Request defated, base64encoded, unsigned
public getRequest ( boolean | null $deflate = null ) : string
$deflate boolean | null Whether or not we should 'gzdeflate' the request body before we return it.
Результат string Deflated base64 encoded Logout Request

getSessionIndexes() публичный статический Метод

Notice: Our Constructor only support 1 SessionIndex but this parser extracts an array of all the SessionIndex found on a Logout Request, that could be many.
public static getSessionIndexes ( string | DOMDocument $request ) : array
$request string | DOMDocument Logout Request Message
Результат array The SessionIndex value

isValid() публичный Метод

Checks if the Logout Request recieved is valid.
public isValid ( $retrieveParametersFromServer = false ) : boolean
Результат boolean If the Logout Request is or not valid

Описание свойств

$_logoutRequest защищенное свойство

SAML Logout Request
protected string $_logoutRequest
Результат string

$_settings защищенное свойство

Object that represents the setting info
protected OneLogin_Saml2_Settings $_settings
Результат OneLogin_Saml2_Settings

$id публичное свойство

Contains the ID of the Logout Request
public string $id
Результат string