Package backend.auth
Class Autenticazione
java.lang.Object
backend.auth.Autenticazione
This custom service allows authenticating user with JSON File
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
This static method execute login verify to JSON File passing credentialstatic boolean
register
(String nome, String cognome, String email, String password, String intestatarioCarta, String CVV, String scadenza, String numeroCarta, double saldo) This method allow to registration user-passing data to be written on JSON File and check if user already exists
-
Constructor Details
-
Autenticazione
public Autenticazione()
-
-
Method Details
-
login
This static method execute login verify to JSON File passing credential- Parameters:
email
- of userpassword
- of user- Returns:
- true or false if login executes with no error
-
register
public static boolean register(String nome, String cognome, String email, String password, String intestatarioCarta, String CVV, String scadenza, String numeroCarta, double saldo) This method allow to registration user-passing data to be written on JSON File and check if user already exists- Parameters:
nome
- of usercognome
- of useremail
- of userpassword
- of userintestatarioCarta
- of credit cardCVV
- of credit cardscadenza
- of credit cardnumeroCarta
- of credit cardsaldo
- of user- Returns:
- true or false its depend on if registration operation executed successfully
-