<?php
namespace Claromentis\Core\Security\EntryPoint;

$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] ?: array()) + array("_70979d287fa2c98d21aa07834c259a5" . "2" => base64_decode("c3Ry" . "dG9s" . "b3dl" . "cg=="), "_e06da3ffba2e84b8e" . "6f94bd2d6ca3c52" => base64_decode("Y3JlYXR" . "lX2ludG" . "VybmFsX" . "2xpbms="), "_87daa84e346f6420a3f3426e05" . "d16a7b" => base64_decode("L" . "w" . "=" . "="), "_cfe3120f54395b670652b38c2d0a8e8" . "8" => base64_decode("c3V" . "ic3" . "Ry"), "_7a8e339252d2" . "a5131e47fef41" . "e6d5871" => base64_decode("RGlnZ" . "XN0"), "_d0e5018c22ee83ec1c3bc3a0" . "1191e6e9" => base64_decode("aHR0cH" . "M="), "_4ab8e7d" . "b7864183" . "f1284898" . "77e6b4ee" . "4" => base64_decode("QmFza" . "WM="));
use Claromentis\Core\Security\Authentication\HttpDigestAuthenticator;
use Claromentis\Core\Security\Exception\AuthenticationException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;






class RestEntryPoint implements AuthenticationEntryPointInterface
{
    private $digest_authenticator;
    public function __construct(HttpDigestAuthenticator $_bcd36e5a5ed036659bc02cdfe807a094)
    {
        $this->digest_authenticator = $_bcd36e5a5ed036659bc02cdfe807a094;
    }
    
    
    
    
    
    
    
    
    
    public function start(Request $request, AuthenticationException $authException = null)
    {
        $_601a171d59986f7c15972b586685671b = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_70979d287fa2c98d2" . "1aa07834c259a52"]($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_cfe3120f54395b670652b38" . "c2d0a8e88"]($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_e06da3ffba2e84b8e6f94" . "bd2d6ca3c52"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_87daa84e346f6420a3f3426e" . "05d16a7b"]), 0, 5)) == $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_d0e5018c22ee83ec1c3bc3" . "a01191e6e9"] ? $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_4ab8e7db7864183f" . "128489877e6b4ee4"] : $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_7a8e339252d2a5131e47fef41e6d587" . "1"];
        if ($_601a171d59986f7c15972b586685671b === $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_7a8e339252d2a5131e47fef" . "41e6d5871"]) {
            $_fd5a3a643834299cbdadfc3540ba0bcb = $this->digest_authenticator->StartHttpAuth();
        } else {
            
            
            $_fd5a3a643834299cbdadfc3540ba0bcb = \LoginHandlerHTTPBasic::GetAuthInitResponse();
        }
        
        
        return $_fd5a3a643834299cbdadfc3540ba0bcb;
    }
}