diff options
author | Dominique Bongiraud <doume031@wanadoo.fr> | 2010-10-23 09:58:54 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2010-10-24 09:55:31 +0200 |
commit | e96c4eb4c5c97bdad7d93ce2f666ffedf453572a (patch) | |
tree | 92d324c9dc091c2448ba4a80d739cce080025a1f /Authentication/Provider | |
parent | 459534e8cca52e07607949922b588b3a33be9f39 (diff) | |
download | symfony-security-e96c4eb4c5c97bdad7d93ce2f666ffedf453572a.zip symfony-security-e96c4eb4c5c97bdad7d93ce2f666ffedf453572a.tar.gz symfony-security-e96c4eb4c5c97bdad7d93ce2f666ffedf453572a.tar.bz2 |
[Security]Fixed CS
Diffstat (limited to 'Authentication/Provider')
-rw-r--r-- | Authentication/Provider/UserAuthenticationProvider.php | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/Authentication/Provider/UserAuthenticationProvider.php b/Authentication/Provider/UserAuthenticationProvider.php index ddd98c3..17acf2a 100644 --- a/Authentication/Provider/UserAuthenticationProvider.php +++ b/Authentication/Provider/UserAuthenticationProvider.php @@ -42,16 +42,6 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter } /** - * Does additional checks on the user and token (like validating the credentials). - * - * @param AccountInterface $account The retrieved AccountInterface instance - * @param UsernamePasswordToken $token The UsernamePasswordToken token to be authenticated - * - * @throws AuthenticationException if the credentials could not be validated - */ - abstract protected function checkAuthentication(AccountInterface $account, UsernamePasswordToken $token); - - /** * {@inheritdoc} */ public function authenticate(TokenInterface $token) @@ -89,6 +79,14 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter } /** + * {@inheritdoc} + */ + public function supports(TokenInterface $token) + { + return $token instanceof UsernamePasswordToken; + } + + /** * Retrieves the user from an implementation-specific location. * * @param string $username The username to retrieve @@ -101,10 +99,13 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter abstract protected function retrieveUser($username, UsernamePasswordToken $token); /** - * {@inheritdoc} + * Does additional checks on the user and token (like validating the + * credentials). + * + * @param AccountInterface $account The retrieved AccountInterface instance + * @param UsernamePasswordToken $token The UsernamePasswordToken token to be authenticated + * + * @throws AuthenticationException if the credentials could not be validated */ - public function supports(TokenInterface $token) - { - return $token instanceof UsernamePasswordToken; - } + abstract protected function checkAuthentication(AccountInterface $account, UsernamePasswordToken $token); } |