ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\Data\Password Class Reference

A password is used as part of credentials for authentication. More...

+ Collaboration diagram for ILIAS\Data\Password:

Public Member Functions

 __construct ($pass)
 
 toString ()
 Get the password-string. More...
 

Private Attributes

 $pass
 

Detailed Description

A password is used as part of credentials for authentication.

This is a quite specific kind of data - worth to be protected and not to be confused by mistake.

Author
Nils Haagen nils..nosp@m.haag.nosp@m.en@co.nosp@m.ncep.nosp@m.ts-an.nosp@m.d-tr.nosp@m.ainin.nosp@m.g.de

Definition at line 13 of file Password.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\Password::__construct (   $pass)

Definition at line 21 of file Password.php.

References ILIAS\Data\Password\$pass.

22  {
23  if (!is_string($pass)) {
24  throw new \InvalidArgumentException('Invalid value for $pass');
25  }
26  $this->pass = $pass;
27  }

Member Function Documentation

◆ toString()

ILIAS\Data\Password::toString ( )

Get the password-string.

Returns
string

Definition at line 34 of file Password.php.

References ILIAS\Data\Password\$pass.

35  {
36  return $this->pass;
37  }

Field Documentation

◆ $pass

ILIAS\Data\Password::$pass
private

Definition at line 19 of file Password.php.

Referenced by ILIAS\Data\Password\__construct(), and ILIAS\Data\Password\toString().


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