ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
interface.ilPasswordEncoder.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
3
10{
17 public function encodePassword($raw, $salt);
18
26 public function isPasswordValid($encoded, $raw, $salt);
27
32 public function getName();
33
38 public function requiresSalt();
39
45 public function requiresReencoding($encoded);
46
51 public function isSupportedByRuntime();
52}
An exception for terminatinating execution or to throw for unit testing.
encodePassword($raw, $salt)
Encodes the raw password.
isPasswordValid($encoded, $raw, $salt)
Checks a raw password against an encoded 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($encoded)
Returns whether or not the a encoded password needs to be re-encoded.