Added registration client/server

This commit is contained in:
Lorenzo Iovino 2017-06-17 18:12:56 +02:00
parent dd799f6d99
commit 546e341433
18 changed files with 817 additions and 418 deletions

View file

@ -9,5 +9,7 @@ import java.rmi.RemoteException;
*/
public interface ITTAuth extends Remote {
TTResponse login(String userName, String password) throws RemoteException;
TTResponse register(String userName, String password) throws RemoteException;
TTResponse logout(String userName, String token) throws RemoteException;
}

View file

@ -0,0 +1,14 @@
package models;
/**
* Created by loke on 17/06/2017.
*/
public class TTAccount {
public String userName;
public String token;
public TTAccount(String userName, String token){
this.userName = userName;
this.token = token;
}
}