PHP 클래스 OneLogin_Saml2_LogoutRequest

파일 보기 프로젝트 열기: onelogin/php-saml 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$id string Contains the ID of the Logout Request

보호된 프로퍼티들

프로퍼티 타입 설명
$_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