package terminal;

public class Card {
	int id;
	int customerID; 
	String customerName;
	int kilometers;
	long expiration;
	String expString;
	int revocation;
	String cardPublicKey;
	
	
	
	
	public Card(){
		
	}
	
	public Card(int ID, int custID, String custName, int km, long exp, 
			int revoke, String cardPK){
		this.id = ID;
		this.customerID = custID;
		this.customerName = custName;
		this.kilometers = km;
		this.expiration = exp;
		this.revocation = revoke;
		this.cardPublicKey = cardPK;
	}
	
	public void setKilometers(int kmNew){
		this.kilometers = kmNew;
	}
	
	public void setExpiration(long expNew){
		this.expiration = expNew;
	}
	public void setStringExpiration(String strExpNew){
		this.expString = strExpNew;
	}
	
	public int getID(){
		return this.id;
	}
	
	public int getCustomerID(){
		return this.customerID;
	}
	
	public String getCustomerName(){
		return this.customerName;
	}
	
	public int getKilometers(){
		return this.kilometers;
	}
	
	public String getStringKilometers(){
		return this.expString;
	}
	
	public long getExpDate(){
		return this.expiration;
	}
	
	public int getRevocationStates(){
		return this.revocation;
	}
	public String getCardPublicKey(){
		return this.cardPublicKey;
	}
	

}

@@ -186,26 +186,45 @@
 icKey;%0D%0A%09%0D%0A%09
+byte%5B%5D cardModulus;
 %0D%0A
-
 %09%0D%0A%09%0D%0A%09publi
@@ -775,32 +775,132 @@
 strExpNew;%0D%0A%09%7D%0D%0A
+%09public void setCardModulus(byte%5B%5D cardByteModulus)%7B%0D%0A%09%09this.cardModulus = cardByteModulus;%0D%0A%09%7D%0D%0A%09%0D%0A
 %09%0D%0A%09public int g
@@ -1366,24 +1366,24 @@
 blicKey()%7B%0D%0A
-
 %09%09return thi
@@ -1406,14 +1406,83 @@
 %0D%0A%09%7D%0D%0A%09%0D
+%0A%09public byte%5B%5D getCardModulus()%7B%0D%0A%09%09return this.cardModulus;%0D%0A%09%7D%0D%0A%09%0D
 %0A%0D%0A%7D%0D%0A

add byte card modulus