HostageDBContract.java 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package de.tudarmstadt.informatik.hostage.persistence;
  2. import android.provider.BaseColumns;
  3. public final class HostageDBContract {
  4. public static abstract class NetworkEntry implements BaseColumns {
  5. public static final String TABLE_NAME = "network";
  6. public static final String COLUMN_NAME_BSSID = "_bssid";
  7. public static final String COLUMN_NAME_SSID = "ssid";
  8. public static final String COLUMN_NAME_LATITUDE = "latitude";
  9. public static final String COLUMN_NAME_LONGITUDE = "longitude";
  10. public static final String COLUMN_NAME_ACCURACY = "accuracy";
  11. public static final String COLUMN_NAME_GEO_TIMESTAMP = "geo_timestamp";
  12. public static final String KEY_ID = COLUMN_NAME_BSSID;
  13. }
  14. public static abstract class AttackEntry implements BaseColumns {
  15. public static final String TABLE_NAME = "attack";
  16. public static final String COLUMN_NAME_ATTACK_ID = "_attack_id";
  17. public static final String COLUMN_NAME_PROTOCOL = "protocol";
  18. public static final String COLUMN_NAME_EXTERNAL_IP = "externalIP";
  19. public static final String COLUMN_NAME_LOCAL_IP = "localIP";
  20. public static final String COLUMN_NAME_LOCAL_PORT = "localPort";
  21. public static final String COLUMN_NAME_REMOTE_IP = "remoteIP";
  22. public static final String COLUMN_NAME_REMOTE_PORT = "remotePort";
  23. public static final String COLUMN_NAME_BSSID = "_bssid";
  24. public static final String KEY_ID = COLUMN_NAME_ATTACK_ID;
  25. }
  26. public static abstract class PacketEntry implements BaseColumns {
  27. public static final String TABLE_NAME = "packet";
  28. public static final String COLUMN_NAME_ID = "_id";
  29. public static final String COLUMN_NAME_ATTACK_ID = "_attack_id";
  30. public static final String COLUMN_NAME_TYPE = "type";
  31. public static final String COLUMN_NAME_PACKET_TIMESTAMP = "packet_timestamp";
  32. public static final String COLUMN_NAME_PACKET = "packet";
  33. public static final String KEY_ID = COLUMN_NAME_ID;
  34. }
  35. public static abstract class PortscanEntry implements BaseColumns {
  36. public static final String TABLE_NAME = "portscan";
  37. public static final String COLUMN_NAME_ID = "_id";
  38. public static final String COLUMN_NAME_PORTSCAN_TIMESTAMP = "portscan_timestamp";
  39. public static final String COLUMN_NAME_FROM_IP = "from_ip";
  40. public static final String KEY_ID = COLUMN_NAME_ID;
  41. }
  42. }