ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
interface.ilPasswordEncoder.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
34 public function encodePassword(string $raw, string $salt): string;
35
43 public function isPasswordValid(string $encoded, string $raw, string $salt): bool;
44
48 public function getName(): string;
49
53 public function requiresSalt(): bool;
54
58 public function requiresReencoding(string $encoded): bool;
59
63 public function isSupportedByRuntime(): bool;
64}
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 the encoder is supported by the runtime (PHP, HHVM, ...)
getName()
Returns a unique name/id of the concrete password encoder.
requiresSalt()
Returns whether the encoder requires a salt.
requiresReencoding(string $encoded)
Returns whether the encoded password needs to be re-encoded.