src/com/vehiclerental/dataLayer/entities/Booking.java
/**
     * Encrypts some properties of the entity
     */
Encrypts some properties of the entity
Encrypts some properties of the entity
public void encrypt() {
        try {
            this.creditCardNumberEncrypted = CryptoUtils.encrypt(creditCardNumberEncrypted);
            this.creditCardExpirationMonthEncrypted = CryptoUtils.encrypt(creditCardExpirationMonthEncrypted);
            this.creditCardExpirationYearEncrypted = CryptoUtils.encrypt(creditCardExpirationYearEncrypted);
            this.creditCardCvcCodeEncrypted = CryptoUtils.encrypt(creditCardCvcCodeEncrypted);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
public void encrypt ( ) { try { this . creditCardNumberEncrypted = CryptoUtils . encrypt ( creditCardNumberEncrypted ) ; this . creditCardExpirationMonthEncrypted = CryptoUtils . encrypt ( creditCardExpirationMonthEncrypted ) ; this . creditCardExpirationYearEncrypted = CryptoUtils . encrypt ( creditCardExpirationYearEncrypted ) ; this . creditCardCvcCodeEncrypted = CryptoUtils . encrypt ( creditCardCvcCodeEncrypted ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
Encrypts some properties of the entity
Encrypts some properties of the entity