ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
interface.ilPasswordEncoder.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
3
10{
17 public function encodePassword(string $raw, string $salt) : string;
18
26 public function isPasswordValid(string $encoded, string $raw, string $salt) : bool;
27
32 public function getName() : string;
33
38 public function requiresSalt() : bool;
39
45 public function requiresReencoding(string $encoded) : bool;
46
51 public function isSupportedByRuntime() : bool;
52}
An exception for terminatinating execution or to throw for unit testing.
isPasswordValid(string $encoded, string $raw, string $salt)
Checks a raw password against an encoded password.
encodePassword(string $raw, string $salt)
Encodes the raw password.
isSupportedByRuntime()
Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
getName()
Returns a unique name/id of the concrete password encoder.
requiresSalt()
Returns whether or not the encoder requires a salt.
requiresReencoding(string $encoded)
Returns whether or not the a encoded password needs to be re-encoded.