Almedia interview question

Implement an authentication service class?