ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\HTTP\Auth\AbstractAuth Class Reference

HTTP Authentication base class. More...

+ Inheritance diagram for Sabre\HTTP\Auth\AbstractAuth:
+ Collaboration diagram for Sabre\HTTP\Auth\AbstractAuth:

Public Member Functions

 __construct ($realm='SabreTooth', RequestInterface $request, ResponseInterface $response)
 Creates the object. More...
 
 requireLogin ()
 This method sends the needed HTTP header and statuscode (401) to force the user to login. More...
 
 getRealm ()
 Returns the HTTP realm. More...
 

Protected Attributes

 $realm
 
 $request
 
 $response
 

Detailed Description

HTTP Authentication base class.

This class provides some common functionality for the various base classes.

Author
Evert Pot (http://evertpot.com/) @license http://sabre.io/license/ Modified BSD License

Definition at line 17 of file AbstractAuth.php.

Constructor & Destructor Documentation

◆ __construct()

Sabre\HTTP\Auth\AbstractAuth::__construct (   $realm = 'SabreTooth',
RequestInterface  $request,
ResponseInterface  $response 
)

Creates the object.

Parameters
string$realm
Returns
void

Reimplemented in Sabre\HTTP\Auth\Digest.

Definition at line 46 of file AbstractAuth.php.

46 {
47
48 $this->realm = $realm;
49 $this->request = $request;
50 $this->response = $response;
51
52 }

References Sabre\HTTP\Auth\AbstractAuth\$realm, Sabre\HTTP\Auth\AbstractAuth\$request, and Sabre\HTTP\Auth\AbstractAuth\$response.

Member Function Documentation

◆ getRealm()

Sabre\HTTP\Auth\AbstractAuth::getRealm ( )

Returns the HTTP realm.

Returns
string

Definition at line 67 of file AbstractAuth.php.

67 {
68
69 return $this->realm;
70
71 }

References Sabre\HTTP\Auth\AbstractAuth\$realm.

◆ requireLogin()

Sabre\HTTP\Auth\AbstractAuth::requireLogin ( )
abstract

This method sends the needed HTTP header and statuscode (401) to force the user to login.

Returns
void

Reimplemented in Sabre\HTTP\Auth\AWS, Sabre\HTTP\Auth\Basic, Sabre\HTTP\Auth\Bearer, and Sabre\HTTP\Auth\Digest.

Field Documentation

◆ $realm

Sabre\HTTP\Auth\AbstractAuth::$realm
protected

◆ $request

Sabre\HTTP\Auth\AbstractAuth::$request
protected

◆ $response

Sabre\HTTP\Auth\AbstractAuth::$response
protected

The documentation for this class was generated from the following file: