Example #1
0
  public static void main(String[] args) {
    Identification auth = new Identification();
    auth.setVisible(true);

    // On attend d'etre loggué pour continuer l'initialisation du programme
    while (!auth.isLogged()) ;
    Simulateur simu = new Simulateur();
    Manager mana = new Manager(simu);
    simu.setManager(mana);
    mana.session();
  }
Example #2
0
 public CardToken(
     String cardNumber,
     Integer expirationMonth,
     Integer expirationYear,
     String securityCode,
     String cardholderName,
     String identificationType,
     String identificationNumber) {
   this.cardNumber = normalizeCardNumber(cardNumber);
   this.expirationMonth = expirationMonth;
   this.expirationYear = normalizeYear(expirationYear);
   this.securityCode = securityCode;
   this.cardholder = new Cardholder();
   this.cardholder.setName(cardholderName);
   Identification identification = new Identification();
   identification.setNumber(identificationNumber);
   identification.setType(identificationType);
   this.cardholder.setIdentification(identification);
 }