public function authenticate(GenericUserInterface $user, $credential)
    {
        $authenticationResult = $this->passwordManager->validate($credential, $user->getCredential());
        if (!$authenticationResult) {
            throw new InvalidCredentialException();
        }

        $this->store($user->getAttributes());

        return true;
    }