m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi
diff options
context:
space:
mode:
authorMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-12 21:05:28 +0100
committerMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-12 21:05:28 +0100
commitda5df3957ba41d28256ab8183aae0dd3b6e0dcba (patch)
tree285a927acfcac8928f453215d9c6817de2a9c5af /src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi
parentead50cfbb310feaaf6dfc7da6b59165428e4833a (diff)
Add query signer architecture
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi/QuerySignerApi.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi/QuerySignerApi.java b/src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi/QuerySignerApi.java
new file mode 100644
index 0000000..3c77c0a
--- /dev/null
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi/QuerySignerApi.java
@@ -0,0 +1,17 @@
+package pl.edu.mimuw.cloudatlas.querysignerapi;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.security.PublicKey;
+
+public interface QuerySignerApi extends Remote {
+ public byte[] signQuery(String queryName, String queryCode) throws RemoteException;
+
+ public String checkQuery(byte[] encryptedQuery, String queryName, String queryCode) throws RemoteException;
+
+ public PublicKey getPublicKey() throws RemoteException;
+
+ public void setPublicKey(PublicKey publicKey) throws RemoteException;
+
+ public byte[] getQuerySignature(String queryName) throws RemoteException;
+}