public class TigerDroidClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
Cells |
Constructor and Description |
---|
TigerDroidClient()
The default contructor
|
TigerDroidClient(android.content.Context cont)
The default contractor which sets the context localy (probably will not be used)
|
Modifier and Type | Method and Description |
---|---|
void |
CloseTable(java.lang.String username,
java.lang.String pass,
java.lang.String dbname,
java.lang.String tablename)
Closed the Table on the White tiger Server
|
SqlLiteManager |
DecryptTable(java.lang.String root,
java.lang.String recordtag,
java.lang.String username,
java.lang.String dbname,
java.lang.String table,
java.lang.String pass,
java.lang.String alg,
java.lang.String hashalg,
java.lang.String passphrase,
SqlLiteManager sqlmngr)
Decrypts the Table on the sqlliste manager
|
java.lang.String[] |
GetColumns(java.lang.String username,
java.lang.String pass,
java.lang.String dbname,
java.lang.String tablename)
The Columns in an array
|
java.lang.String |
GetElemntName(java.lang.String username,
java.lang.String tablename)
The name of the xml element which contains the rows
|
java.lang.String |
GetServerVersion()
Gets the Version of the White Tiger Server
|
java.lang.String |
GetURI()
Gets the uri of the White Tiger address
|
java.lang.Boolean |
IsTableEncrypted(java.lang.String username,
java.lang.String pass,
java.lang.String dbname,
java.lang.String tablename)
Checks to see if the table is encrypted
|
java.lang.String[] |
ListDatabses(java.lang.String username,
java.lang.String pass)
Returns the Databases belonging to the given user
|
java.lang.String[] |
ListTables(java.lang.String username,
java.lang.String pass,
java.lang.String dbname)
Returns the tables belonging to the given database
|
void |
LoadTableToSQLLite(java.lang.String recordtag,
java.lang.String username,
java.lang.String pass,
java.lang.String dbname,
java.lang.String tablename,
SqlLiteManager sqlmngr)
Load the Table on the sqlliste manager
|
void |
SaveTable(java.lang.String recordtag,
java.lang.String username,
java.lang.String pass,
java.lang.String dbname,
java.lang.String tablename,
SqlLiteManager sqlmngr)
Saves the Table on the White tiger Server
|
void |
SetURI(java.lang.String serverip)
Sets the IP of the White Tiger
|
public TigerDroidClient()
public TigerDroidClient(android.content.Context cont)
public java.lang.String GetURI()
public void SetURI(java.lang.String serverip)
public java.lang.String GetServerVersion()
public java.lang.String[] ListDatabses(java.lang.String username, java.lang.String pass)
username
- the name of the userpass
- the password of the userpublic java.lang.String[] ListTables(java.lang.String username, java.lang.String pass, java.lang.String dbname)
username
- the name of the userpass
- the password of the userdbname
- name of the databasepublic java.lang.String GetElemntName(java.lang.String username, java.lang.String tablename)
username
- name of the usertablename
- name of the tablepublic void SaveTable(java.lang.String recordtag, java.lang.String username, java.lang.String pass, java.lang.String dbname, java.lang.String tablename, SqlLiteManager sqlmngr)
recordtag
- name of the xml tag which contains the records valuesusername
- name of the userpass
- user's passworddbname
- name of the databasetablename
- name of the tablesqlmngr
- the SqlLiteManager object which contain the tablepublic void CloseTable(java.lang.String username, java.lang.String pass, java.lang.String dbname, java.lang.String tablename)
username
- name of the userpass
- user's passworddbname
- name of the databasetablename
- name of the tablepublic void LoadTableToSQLLite(java.lang.String recordtag, java.lang.String username, java.lang.String pass, java.lang.String dbname, java.lang.String tablename, SqlLiteManager sqlmngr)
recordtag
- name of the xml tag which contains the records valuesusername
- name of the userpass
- user's passworddbname
- name of the databasetablename
- name of the tablesqlmngr
- the sqllitemanager object which will contain the tablepublic SqlLiteManager DecryptTable(java.lang.String root, java.lang.String recordtag, java.lang.String username, java.lang.String dbname, java.lang.String table, java.lang.String pass, java.lang.String alg, java.lang.String hashalg, java.lang.String passphrase, SqlLiteManager sqlmngr)
root
- the root element of the xmlrecordtag
- name of the xml tag which contains the records valuesusername
- name of the user *dbname
- name of the databasetable
- name of the tablepass
- user's passwordalg
- the encryption algorith which is used in the encryption of the tablehasalg
- the Hash algorith which is used in the hash generation of the keypassphrase
- the passphrase which is used to decrypt the databasesqlmngr
- the sqllitemanager object which will contain the tablepublic java.lang.Boolean IsTableEncrypted(java.lang.String username, java.lang.String pass, java.lang.String dbname, java.lang.String tablename)
username
- name of the userpass
- user's passworddbname
- name of the databasetablename
- name of the tablepublic java.lang.String[] GetColumns(java.lang.String username, java.lang.String pass, java.lang.String dbname, java.lang.String tablename)
username
- name of the userpass
- user's passworddbname
- name of the databasetablename
- name of the table