package terminal;

public class Card {
	int id;
	int customerID; 
	String customerName;
	int kilometers;
	long expiration;
	String expString;
	int revocation;
	String cardPublicKey;
	
	byte[] cardModulus;
	
	
	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 void setCardModulus(byte[] cardByteModulus){
		this.cardModulus = cardByteModulus;
	}
	
	
	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;
	}
	
	public byte[] getCardModulus(){
		return this.cardModulus;
	}
	

}

@@ -88,18 +88,20 @@
 Name;%0D%0A%09
-in
+shor
 t kilome
@@ -297,18 +297,20 @@
 stName, 
-in
+shor
 t km, lo
@@ -576,18 +576,20 @@
 ometers(
-in
+shor
 t kmNew)

change km into short