Skip to content
Snippets Groups Projects
Commit fc0fe717 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Use getter-methods

parent df88c21f
No related branches found
No related tags found
No related merge requests found
...@@ -768,7 +768,7 @@ class Message ...@@ -768,7 +768,7 @@ class Message
$clientCert = str_replace(["\r", "\n", " "], '', $matches[1]); $clientCert = str_replace(["\r", "\n", " "], '', $matches[1]);
$keyInfo = []; $keyInfo = [];
foreach ($scd->info as $thing) { foreach ($scd->getInfo() as $thing) {
if ($thing instanceof KeyInfo) { if ($thing instanceof KeyInfo) {
$keyInfo[] = $thing; $keyInfo[] = $thing;
} }
...@@ -780,7 +780,7 @@ class Message ...@@ -780,7 +780,7 @@ class Message
} }
$x509data = []; $x509data = [];
foreach ($keyInfo[0]->info as $thing) { foreach ($keyInfo[0]->getInfo() as $thing) {
if ($thing instanceof X509Data) { if ($thing instanceof X509Data) {
$x509data[] = $thing; $x509data[] = $thing;
} }
...@@ -792,7 +792,7 @@ class Message ...@@ -792,7 +792,7 @@ class Message
} }
$x509cert = []; $x509cert = [];
foreach ($x509data[0]->data as $thing) { foreach ($x509data[0]->getData() as $thing) {
if ($thing instanceof X509Certificate) { if ($thing instanceof X509Certificate) {
$x509cert[] = $thing; $x509cert[] = $thing;
} }
...@@ -803,7 +803,7 @@ class Message ...@@ -803,7 +803,7 @@ class Message
continue; continue;
} }
$HoKCertificate = $x509cert[0]->certificate; $HoKCertificate = $x509cert[0]->getCertificate();
if ($HoKCertificate !== $clientCert) { if ($HoKCertificate !== $clientCert) {
$lastError = 'Provided client certificate does not match the certificate bound to the '. $lastError = 'Provided client certificate does not match the certificate bound to the '.
'Holder-of-Key assertion'; 'Holder-of-Key assertion';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment