src/SAML2/LogoutRequest.php 1 location
|
@@ 191-199 (lines=9) @@
|
| 188 |
|
* |
| 189 |
|
* @param \SAML2\XML\saml\NameID|array|null $nameId The name identifier of the session that should be terminated. |
| 190 |
|
*/ |
| 191 |
|
public function setNameId($nameId) |
| 192 |
|
{ |
| 193 |
|
assert(is_array($nameId) || $nameId instanceof XML\saml\NameID); |
| 194 |
|
|
| 195 |
|
if (is_array($nameId)) { |
| 196 |
|
$nameId = XML\saml\NameID::fromArray($nameId); |
| 197 |
|
} |
| 198 |
|
$this->nameId = $nameId; |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
/** |
| 202 |
|
* Retrieve the SessionIndexes of the sessions that should be terminated. |
src/SAML2/SubjectQuery.php 1 location
|
@@ 88-96 (lines=9) @@
|
| 85 |
|
* |
| 86 |
|
* @param \SAML2\XML\saml\NameID|array|null $nameId The name identifier of the assertion. |
| 87 |
|
*/ |
| 88 |
|
public function setNameId($nameId) |
| 89 |
|
{ |
| 90 |
|
assert(is_array($nameId) || is_null($nameId) || $nameId instanceof XML\saml\NameID); |
| 91 |
|
|
| 92 |
|
if (is_array($nameId)) { |
| 93 |
|
$nameId = XML\saml\NameID::fromArray($nameId); |
| 94 |
|
} |
| 95 |
|
$this->nameId = $nameId; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
|
| 99 |
|
/** |
src/SAML2/Assertion.php 1 location
|
@@ 744-752 (lines=9) @@
|
| 741 |
|
* @see \SAML2\Utils::addNameId() |
| 742 |
|
* @param \SAML2\XML\saml\NameID|array|null $nameId The name identifier of the assertion. |
| 743 |
|
*/ |
| 744 |
|
public function setNameId($nameId) |
| 745 |
|
{ |
| 746 |
|
assert(is_array($nameId) || is_null($nameId) || $nameId instanceof XML\saml\NameID); |
| 747 |
|
|
| 748 |
|
if (is_array($nameId)) { |
| 749 |
|
$nameId = XML\saml\NameID::fromArray($nameId); |
| 750 |
|
} |
| 751 |
|
$this->nameId = $nameId; |
| 752 |
|
} |
| 753 |
|
|
| 754 |
|
/** |
| 755 |
|
* Check whether the NameId is encrypted. |
src/SAML2/AuthnRequest.php 1 location
|
@@ 658-666 (lines=9) @@
|
| 655 |
|
* |
| 656 |
|
* @param \SAML2\XML\saml\NameID|null $nameId The name identifier of the assertion. |
| 657 |
|
*/ |
| 658 |
|
public function setNameId($nameId) |
| 659 |
|
{ |
| 660 |
|
assert(is_array($nameId) || is_null($nameId) || $nameId instanceof XML\saml\NameID); |
| 661 |
|
|
| 662 |
|
if (is_array($nameId)) { |
| 663 |
|
$nameId = XML\saml\NameID::fromArray($nameId); |
| 664 |
|
} |
| 665 |
|
$this->nameId = $nameId; |
| 666 |
|
} |
| 667 |
|
|
| 668 |
|
/** |
| 669 |
|
* Encrypt the NameID in the AuthnRequest. |