Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • Md5Strategy
  • PasswordHashStrategy

Class PasswordHashStrategy

Class PasswordHashStrategy

PasswordHashStrategy implements AuthStrategyInterface
Package: Authentication\Strategies
Category: System
Located at Services/Core/Authentication/Strategies/PasswordHashStrategy.inc.php

Methods summary

public boolean
# verify( StringType $password, NonEmptyStringType $hash, AuthStrategyCollection $alternativeAlgorithmCollection = null )

Verifies a given password by its stored hash from the current hashing algorithm.

Verifies a given password by its stored hash from the current hashing algorithm.

Parameters

$password
Password that should be verified.
$hash
Stored Hash of a password.
$alternativeAlgorithmCollection
Collection of alternative hashing algorithms.

Returns

boolean
Returns true if $password matches $hash, false otherwise.

Implementation of

AuthStrategyInterface::verify()
public string
# getHash( StringType $password )

Generates a hash by given password string.

Generates a hash by given password string.

Parameters

$password
String that should be hashed.

Returns

string
Resulting hash.

Throws

RuntimeException
if password_hash() could not create a hash.

Implementation of

AuthStrategyInterface::getHash()
public string
# getRehashedPassword( StringType $password, NonEmptyStringType $hash, AuthStrategyCollection $alternativeAlgorithmCollection = null )

Returns a rehashed password hash if it does not match the currently used hashing algorithm.

Returns a rehashed password hash if it does not match the currently used hashing algorithm.

Parameters

$password

Password that should be rehashed by a new algorithm.

$hash
Current password hash.
$alternativeAlgorithmCollection
Collection of alternative hashing algorithms.

Returns

string
The new password hash.

Implementation of

AuthStrategyInterface::getRehashedPassword()
API documentation generated by ApiGen