PHP Class Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\TwoFactorProvider

Inheritance: implements Scheb\TwoFactorBundle\Security\TwoFactor\Provider\TwoFactorProviderInterface
Afficher le fichier Open project: scheb/two-factor-bundle Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Generator\CodeGeneratorInterface $codeGenerator, Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Validation\CodeValidatorInterface $authenticator, Renderer $renderer, $authCodeParameter )
beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : boolean Begin email authentication process.
requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null Ask for email authentication code.

Method Details

__construct() public méthode

public __construct ( Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Generator\CodeGeneratorInterface $codeGenerator, Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Validation\CodeValidatorInterface $authenticator, Renderer $renderer, $authCodeParameter )
$codeGenerator Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Generator\CodeGeneratorInterface
$authenticator Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Validation\CodeValidatorInterface
$renderer Scheb\TwoFactorBundle\Security\TwoFactor\Renderer

beginAuthentication() public méthode

Begin email authentication process.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : boolean
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
Résultat boolean

requestAuthenticationCode() public méthode

Ask for email authentication code.
public requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
Résultat Symfony\Component\HttpFoundation\Response | null