1 package dst.ass2.service.auth.client;
3 import dst.ass2.service.api.auth.AuthenticationException;
4 import dst.ass2.service.api.auth.NoSuchUserException;
6 public interface IAuthenticationClient extends AutoCloseable {
8 String authenticate(String email, String password) throws NoSuchUserException, AuthenticationException;
10 boolean isTokenValid(String token);
13 * Shuts down any underlying resource required to maintain this client.