class saml_sp_Response in SAML Service Provider 7.8
Hierarchy
- class \saml_sp_Response extends \OneLogin_Saml2_Response
Expanded class hierarchy of saml_sp_Response
File
- includes/
saml_sp.Response.inc, line 3
View source
class saml_sp_Response extends OneLogin_Saml2_Response {
/**
* Verifies that the document has the expected signed nodes.
*
* @return bool
*/
public function validateSignedElements($signedElements) {
if (count($signedElements) > 2) {
return false;
}
$ocurrence = array_count_values($signedElements);
if (in_array('samlp:Response', $signedElements) && $ocurrence['samlp:Response'] > 1 || in_array('saml:Assertion', $signedElements) && $ocurrence['saml:Assertion'] > 1 || in_array('Assertion', $signedElements) && $ocurrence['Assertion'] > 1 || !in_array('samlp:Response', $signedElements) && !in_array('saml:Assertion', $signedElements) && !in_array('Assertion', $signedElements)) {
return false;
}
return true;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
saml_sp_Response:: |
public | function | Verifies that the document has the expected signed nodes. |