ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AbstractAuth.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\HTTP\Auth;
4 
7 
17 abstract class AbstractAuth {
18 
24  protected $realm;
25 
31  protected $request;
32 
38  protected $response;
39 
47 
48  $this->realm = $realm;
49  $this->request = $request;
50  $this->response = $response;
51 
52  }
53 
60  abstract function requireLogin();
61 
67  function getRealm() {
68 
69  return $this->realm;
70 
71  }
72 
73 }
This interface represents a HTTP response.
The RequestInterface represents a HTTP request.
requireLogin()
This method sends the needed HTTP header and statuscode (401) to force the user to login...
HTTP Authentication base class.
__construct($realm='SabreTooth', RequestInterface $request, ResponseInterface $response)
Creates the object.
getRealm()
Returns the HTTP realm.