diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-12 22:58:08 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-12 22:58:08 +0100 |
commit | c48ec1604744ab330d18af1f55256c35dc5c34c6 (patch) | |
tree | bd847d0a328e30d545cd4d2ea64a0a07020424b4 /src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi | |
parent | 36cf47fd63352c67a5fdeea7a922c16f0856e9aa (diff) |
Improve query signer and its api
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi/QuerySignerApi.java | 10 |
1 files changed, 8 insertions, 2 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 index 3c77c0a..fa46da3 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi/QuerySignerApi.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi/QuerySignerApi.java @@ -1,13 +1,19 @@ package pl.edu.mimuw.cloudatlas.querysignerapi; +import pl.edu.mimuw.cloudatlas.model.ValueQuery; + 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 ValueQuery signInstallQuery(String queryName, String queryCode) throws RemoteException; + + public ValueQuery signUninstallQuery(String queryName) throws RemoteException; + + public void validateInstallQuery(String queryName, ValueQuery query) throws RemoteException; - public String checkQuery(byte[] encryptedQuery, String queryName, String queryCode) throws RemoteException; + public void validateUninstallQuery(String queryName, ValueQuery query) throws RemoteException; public PublicKey getPublicKey() throws RemoteException; |