Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Drupal\miniorange_saml; use DOMDocument; use DOMElement; use Dru..
Decoded Output download
<?php
namespace Drupal\miniorange_saml;
use DOMDocument;
use DOMElement;
use Drupal\miniorange_saml\XMLSecurityKey;
class SAML2_Response
{
private $assertions;
private $destination;
private $certificates;
private $signatureData;
public function __construct(DOMElement $Z_ = NULL)
{
$this->assertions = array();
$this->certificates = array();
if (!($Z_ === NULL)) {
goto Lo;
}
return;
Lo:
$eZ = Utilities::validateElement($Z_);
if (!($eZ !== FALSE)) {
goto Fx;
}
$this->certificates = $eZ["Certificates"];
$this->signatureData = $eZ;
Fx:
if (!$Z_->hasAttribute("Destination")) {
goto Xq;
}
$this->destination = $Z_->getAttribute("Destination");
Xq:
$Jy = $Z_->firstChild;
Ki:
if (!($Jy !== NULL)) {
goto Yc;
}
if (!($Jy->namespaceURI !== "urn:oasis:names:tc:SAML:2.0:assertion")) {
goto t7;
}
goto cX;
t7:
if (!($Jy->localName === "Assertion" || $Jy->localName === "EncryptedAssertion")) {
goto WI;
}
$this->assertions[] = new SAML2_Assertion($Jy);
WI:
cX:
$Jy = $Jy->nextSibling;
goto Ki;
Yc:
}
public function getAssertions()
{
return $this->assertions;
}
public function setAssertions(array $e0)
{
$this->assertions = $e0;
}
public function getDestination()
{
return $this->destination;
}
public function getCertificates()
{
return $this->certificates;
}
public function getSignatureData()
{
return $this->signatureData;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\miniorange_saml;
use DOMDocument;
use DOMElement;
use Drupal\miniorange_saml\XMLSecurityKey;
class SAML2_Response
{
private $assertions;
private $destination;
private $certificates;
private $signatureData;
public function __construct(DOMElement $Z_ = NULL)
{
$this->assertions = array();
$this->certificates = array();
if (!($Z_ === NULL)) {
goto Lo;
}
return;
Lo:
$eZ = Utilities::validateElement($Z_);
if (!($eZ !== FALSE)) {
goto Fx;
}
$this->certificates = $eZ["\103\145\162\x74\x69\x66\151\x63\x61\164\145\163"];
$this->signatureData = $eZ;
Fx:
if (!$Z_->hasAttribute("\104\x65\x73\x74\x69\156\141\x74\151\x6f\x6e")) {
goto Xq;
}
$this->destination = $Z_->getAttribute("\104\x65\163\x74\x69\156\x61\164\151\157\x6e");
Xq:
$Jy = $Z_->firstChild;
Ki:
if (!($Jy !== NULL)) {
goto Yc;
}
if (!($Jy->namespaceURI !== "\165\x72\156\x3a\157\141\163\x69\x73\72\156\141\x6d\x65\163\72\x74\143\x3a\123\101\115\x4c\72\62\x2e\x30\x3a\x61\163\x73\145\x72\x74\151\x6f\x6e")) {
goto t7;
}
goto cX;
t7:
if (!($Jy->localName === "\101\163\163\x65\x72\x74\x69\157\156" || $Jy->localName === "\x45\x6e\x63\x72\171\160\164\145\x64\101\163\163\145\162\164\151\x6f\x6e")) {
goto WI;
}
$this->assertions[] = new SAML2_Assertion($Jy);
WI:
cX:
$Jy = $Jy->nextSibling;
goto Ki;
Yc:
}
public function getAssertions()
{
return $this->assertions;
}
public function setAssertions(array $e0)
{
$this->assertions = $e0;
}
public function getDestination()
{
return $this->destination;
}
public function getCertificates()
{
return $this->certificates;
}
public function getSignatureData()
{
return $this->signatureData;
}
}
Function Calls
None |
Stats
MD5 | c4331460fe18e54ba2bf7af6a7c5bc2d |
Eval Count | 0 |
Decode Time | 58 ms |