PHP Class FOS\UserBundle\Security\Encoder\EncoderFactory

Author: Johannes M. Schmitt ([email protected])
Author: Jeremy Mikola ([email protected])
Inheritance: implements Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface
Datei anzeigen Open project: KnpLabs/KnpUserBundle Class Usage Examples

Protected Properties

Property Type Description
$encodeHashAsBase64
$encoderClass
$encoders
$genericFactory
$iterations

Public Methods

Method Description
__construct ( string $encoderClass, boolean $encodeHashAsBase64, integer $iterations, Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $genericFactory ) Constructor.
getEncoder ( Symfony\Component\Security\Core\User\AccountInterface $account )

Protected Methods

Method Description
createEncoder ( string $algorithm ) : PasswordEncoderInterface Creates an encoder for the given algorithm.

Method Details

__construct() public method

Constructor.
public __construct ( string $encoderClass, boolean $encodeHashAsBase64, integer $iterations, Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $genericFactory )
$encoderClass string Encoder class
$encodeHashAsBase64 boolean
$iterations integer
$genericFactory Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface

createEncoder() protected method

Creates an encoder for the given algorithm.
protected createEncoder ( string $algorithm ) : PasswordEncoderInterface
$algorithm string
return PasswordEncoderInterface

getEncoder() public method

See also: Symfony\Component\Security\Core\Encoder\EncoderFactory::getEncoder()
public getEncoder ( Symfony\Component\Security\Core\User\AccountInterface $account )
$account Symfony\Component\Security\Core\User\AccountInterface

Property Details

$encodeHashAsBase64 protected_oe property

protected $encodeHashAsBase64

$encoderClass protected_oe property

protected $encoderClass

$encoders protected_oe property

protected $encoders

$genericFactory protected_oe property

protected $genericFactory

$iterations protected_oe property

protected $iterations