class PhpassHashedPasswordLog2BoundariesDouble

Same name and namespace in other branches
  1. 11.x core/modules/phpass/tests/src/Unit/PasswordVerifyTest.php \Drupal\Tests\phpass\Unit\PhpassHashedPasswordLog2BoundariesDouble

Test double for test coverage of enforceLog2Boundaries().

Hierarchy

Expanded class hierarchy of PhpassHashedPasswordLog2BoundariesDouble

File

core/modules/phpass/tests/src/Unit/PasswordVerifyTest.php, line 171

Namespace

Drupal\Tests\phpass\Unit
View source
class PhpassHashedPasswordLog2BoundariesDouble extends PhpassHashedPassword {
  public function __construct() {
    // Noop.
  }
  
  /**
   * Exposes this method as public for tests.
   */
  public function enforceLog2Boundaries($count_log2) {
    return parent::enforceLog2Boundaries($count_log2);
  }

}

Members

Title Sort descending Deprecated Modifiers Object type Summary Overriden Title
PasswordInterface::PASSWORD_MAX_LENGTH constant Maximum password length.
PhpassHashedPasswordBase::$corePassword protected property The core PHP password interface.
PhpassHashedPasswordBase::$countLog2 Deprecated protected property Password stretching iteration count.
PhpassHashedPasswordBase::$ITOA64 public static property Returns a string for mapping an int to the corresponding base 64 character.
PhpassHashedPasswordBase::base64Encode protected function Encodes bytes into printable base 64 using the *nix standard from crypt().
PhpassHashedPasswordBase::check public function Check whether a plain text password matches a hashed password. Overrides PasswordInterface::check
PhpassHashedPasswordBase::crypt protected function Hash a password using a secure stretched hash.
PhpassHashedPasswordBase::generateSalt Deprecated protected function Generates a random base 64-encoded salt prefixed with hash settings.
PhpassHashedPasswordBase::getCountLog2 public function Parses the log2 iteration count from a stored hash or setting string.
PhpassHashedPasswordBase::hash public function Hash a password using a secure hash. Overrides PasswordInterface::hash
PhpassHashedPasswordBase::HASH_LENGTH constant The expected (and maximum) number of characters in a hashed password.
PhpassHashedPasswordBase::MAX_HASH_COUNT constant The maximum allowed log2 number of iterations for password stretching.
PhpassHashedPasswordBase::MIN_HASH_COUNT constant The minimum allowed log2 number of iterations for password stretching.
PhpassHashedPasswordBase::needsRehash public function Check whether a hashed password needs to be replaced with a new hash. Overrides PasswordInterface::needsRehash
PhpassHashedPasswordLog2BoundariesDouble::enforceLog2Boundaries public function Exposes this method as public for tests. Overrides PhpassHashedPasswordBase::enforceLog2Boundaries
PhpassHashedPasswordLog2BoundariesDouble::__construct public function Constructs a new password hashing instance. Overrides PhpassHashedPasswordBase::__construct

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.