@@ -493,7 +493,7 @@ |
||
| 493 | 493 | * namespaces needed to parse the XML. |
| 494 | 494 | */ |
| 495 | 495 | $xml = '<root xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" '. |
| 496 | - 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' . |
|
| 496 | + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' . |
|
| 497 | 497 | $decrypted . |
| 498 | 498 | '</root>'; |
| 499 | 499 | |
@@ -260,7 +260,7 @@ |
||
| 260 | 260 | * |
| 261 | 261 | * @param \DOMElement $node The element we should fetch the attribute from. |
| 262 | 262 | * @param string $attributeName The name of the attribute. |
| 263 | - * @param mixed $default The value that should be returned if the attribute doesn't exist. |
|
| 263 | + * @param false|null $default The value that should be returned if the attribute doesn't exist. |
|
| 264 | 264 | * @return bool|mixed The value of the attribute, or $default if the attribute doesn't exist. |
| 265 | 265 | * @throws \Exception |
| 266 | 266 | */ |
@@ -62,11 +62,11 @@ |
||
| 62 | 62 | */ |
| 63 | 63 | private $encryptionKey; |
| 64 | 64 | |
| 65 | - /** |
|
| 66 | - * The earliest time this assertion is valid, as an UNIX timestamp. |
|
| 67 | - * |
|
| 68 | - * @var int |
|
| 69 | - */ |
|
| 65 | + /** |
|
| 66 | + * The earliest time this assertion is valid, as an UNIX timestamp. |
|
| 67 | + * |
|
| 68 | + * @var int |
|
| 69 | + */ |
|
| 70 | 70 | private $notBefore; |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | /** |
| 695 | 695 | * Check whether the NameId is encrypted. |
| 696 | 696 | * |
| 697 | - * @return true if the NameId is encrypted, false if not. |
|
| 697 | + * @return boolean if the NameId is encrypted, false if not. |
|
| 698 | 698 | */ |
| 699 | 699 | public function isNameIdEncrypted() |
| 700 | 700 | { |
@@ -1096,7 +1096,7 @@ discard block |
||
| 1096 | 1096 | * |
| 1097 | 1097 | * The URI reference MAY directly resolve into an XML document containing the referenced declaration. |
| 1098 | 1098 | * |
| 1099 | - * @return string |
|
| 1099 | + * @return Chunk |
|
| 1100 | 1100 | */ |
| 1101 | 1101 | public function getAuthnContextDeclRef() |
| 1102 | 1102 | { |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | /** |
| 108 | 108 | * Check whether the NameId is encrypted. |
| 109 | 109 | * |
| 110 | - * @return true if the NameId is encrypted, false if not. |
|
| 110 | + * @return boolean if the NameId is encrypted, false if not. |
|
| 111 | 111 | */ |
| 112 | 112 | public function isNameIdEncrypted() |
| 113 | 113 | { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Retrieve the assertions in this response. |
| 47 | 47 | * |
| 48 | - * @return \SAML2\Assertion[]|\SAML2\EncryptedAssertion[] |
|
| 48 | + * @return Utilities\ArrayCollection |
|
| 49 | 49 | */ |
| 50 | 50 | public function getAssertions() |
| 51 | 51 | { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * @param \SAML2\Configuration\Destination $currentDestination |
| 65 | 65 | * @param \SAML2\Response $response |
| 66 | 66 | * |
| 67 | - * @return \SAML2\Assertion[] Collection (\SAML2\Utilities\ArrayCollection) of \SAML2\Assertion objects |
|
| 67 | + * @return \SAML2\Utilities\ArrayCollection Collection (\SAML2\Utilities\ArrayCollection) of \SAML2\Assertion objects |
|
| 68 | 68 | */ |
| 69 | 69 | public function process( |
| 70 | 70 | ServiceProvider $serviceProviderConfiguration, |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | /** |
| 135 | 135 | * @param \SAML2\Response $response |
| 136 | 136 | * |
| 137 | - * @return \SAML2\Assertion[] |
|
| 137 | + * @return \SAML2\Utilities\ArrayCollection |
|
| 138 | 138 | */ |
| 139 | 139 | private function processAssertions(Response $response) |
| 140 | 140 | { |
@@ -212,6 +212,10 @@ |
||
| 212 | 212 | * @param $soapmessage Soap response needs to be type DOMDocument |
| 213 | 213 | * @return $soapfaultstring string|null |
| 214 | 214 | */ |
| 215 | + |
|
| 216 | + /** |
|
| 217 | + * @param \DOMDocument $soapMessage |
|
| 218 | + */ |
|
| 215 | 219 | private function getSOAPFault($soapMessage) |
| 216 | 220 | { |
| 217 | 221 | $soapFault = Utils::xpQuery($soapMessage->firstChild, '/soap-env:Envelope/soap-env:Body/soap-env:Fault'); |
@@ -53,8 +53,8 @@ |
||
| 53 | 53 | const CM_BEARER = 'urn:oasis:names:tc:SAML:2.0:cm:bearer'; |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * Holder-of-Key subject confirmation method. |
|
| 57 | - */ |
|
| 56 | + * Holder-of-Key subject confirmation method. |
|
| 57 | + */ |
|
| 58 | 58 | const CM_HOK = 'urn:oasis:names:tc:SAML:2.0:cm:holder-of-key'; |
| 59 | 59 | |
| 60 | 60 | /** |