|
8 | 8 | import java.security.NoSuchAlgorithmException; |
9 | 9 | import java.util.concurrent.CompletableFuture; |
10 | 10 |
|
| 11 | +import de.gdata.vaas.exceptions.VaasAuthenticationException; |
| 12 | +import de.gdata.vaas.exceptions.VaasClientException; |
11 | 13 | import de.gdata.vaas.messages.VaasVerdict; |
12 | 14 | import de.gdata.vaas.options.ForFileOptions; |
13 | 15 | import de.gdata.vaas.options.ForSha256Options; |
14 | 16 | import de.gdata.vaas.options.ForStreamOptions; |
15 | 17 | import de.gdata.vaas.options.ForUrlOptions; |
16 | 18 |
|
17 | 19 | public interface IVaas { |
18 | | - public CompletableFuture<VaasVerdict> forSha256(Sha256 sha256) throws URISyntaxException, IOException, InterruptedException; |
19 | | - public CompletableFuture<VaasVerdict> forSha256(Sha256 sha256, ForSha256Options options) throws URISyntaxException, IOException, InterruptedException; |
20 | | - public CompletableFuture<VaasVerdict> forStream(InputStream stream, long contentLength) throws URISyntaxException, IOException, InterruptedException; |
21 | | - public CompletableFuture<VaasVerdict> forStream(InputStream stream, long contentLength, ForStreamOptions options) throws URISyntaxException, IOException, InterruptedException; |
22 | | - public CompletableFuture<VaasVerdict> forFile(Path file) throws NoSuchAlgorithmException, IOException, URISyntaxException, InterruptedException; |
23 | | - public CompletableFuture<VaasVerdict> forFile(Path file, ForFileOptions options) throws NoSuchAlgorithmException, IOException, URISyntaxException, InterruptedException; |
24 | | - public CompletableFuture<VaasVerdict> forUrl(URL url) throws URISyntaxException, IOException, InterruptedException; |
25 | | - public CompletableFuture<VaasVerdict> forUrl(URL url, ForUrlOptions options) throws URISyntaxException, IOException, InterruptedException; |
| 20 | + public CompletableFuture<VaasVerdict> forSha256(Sha256 sha256) throws URISyntaxException, IOException, InterruptedException, VaasClientException, VaasAuthenticationException; |
| 21 | + public CompletableFuture<VaasVerdict> forSha256(Sha256 sha256, ForSha256Options options) throws URISyntaxException, IOException, InterruptedException, VaasClientException, VaasAuthenticationException; |
| 22 | + public CompletableFuture<VaasVerdict> forStream(InputStream stream, long contentLength) throws URISyntaxException, IOException, InterruptedException, VaasAuthenticationException; |
| 23 | + public CompletableFuture<VaasVerdict> forStream(InputStream stream, long contentLength, ForStreamOptions options) throws URISyntaxException, IOException, InterruptedException, VaasAuthenticationException; |
| 24 | + public CompletableFuture<VaasVerdict> forFile(Path file) throws NoSuchAlgorithmException, IOException, URISyntaxException, InterruptedException, VaasAuthenticationException; |
| 25 | + public CompletableFuture<VaasVerdict> forFile(Path file, ForFileOptions options) throws NoSuchAlgorithmException, IOException, URISyntaxException, InterruptedException, VaasAuthenticationException; |
| 26 | + public CompletableFuture<VaasVerdict> forUrl(URL url) throws URISyntaxException, IOException, InterruptedException, VaasAuthenticationException; |
| 27 | + public CompletableFuture<VaasVerdict> forUrl(URL url, ForUrlOptions options) throws URISyntaxException, IOException, InterruptedException, VaasAuthenticationException; |
26 | 28 |
|
27 | 29 | } |
0 commit comments