m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/querysignerapi/QuerySignerApi.java
blob: fa46da396cdca67deb363730bb41540470040e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 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 void validateUninstallQuery(String queryName, ValueQuery query) throws RemoteException;

    public PublicKey getPublicKey() throws RemoteException;

    public void setPublicKey(PublicKey publicKey) throws RemoteException;

    public byte[] getQuerySignature(String queryName) throws RemoteException;
}