SimpleSAML_XML_Shib13_AuthnResponse::getSessionIndex PHP 메소드

getSessionIndex() 공개 메소드

Retrieve the session index of this response.
public getSessionIndex ( ) : string | null
리턴 string | null The session index of this response.
    function getSessionIndex()
    {
        assert('$this->dom instanceof DOMDocument');
        $query = '/shibp:Response/shib:Assertion/shib:AuthnStatement';
        $nodelist = $this->doXPathQuery($query);
        if ($node = $nodelist->item(0)) {
            return $node->getAttribute('SessionIndex');
        }
        return NULL;
    }