Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uvasoftware/scanii-java
Java interface to the scanii.com content processing service
https://github.com/uvasoftware/scanii-java
java malware-analysis scanii
Last synced: 17 days ago
JSON representation
Java interface to the scanii.com content processing service
- Host: GitHub
- URL: https://github.com/uvasoftware/scanii-java
- Owner: uvasoftware
- License: apache-2.0
- Created: 2011-01-14T12:58:15.000Z (almost 14 years ago)
- Default Branch: main
- Last Pushed: 2023-12-26T14:16:47.000Z (about 1 year ago)
- Last Synced: 2024-04-18T00:14:05.408Z (9 months ago)
- Topics: java, malware-analysis, scanii
- Language: Java
- Homepage: https://scanii.com/
- Size: 190 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
### A pure Java interface to the Scanii content processing service - https://scanii.com
### How to use this client
#### Installing using Maven coordinates:
```xml
com.uvasoftware
scanii-java
${latest.release.version}```
### Sample usage:
```java
package com.uvasoftware.scanii;import com.uvasoftware.scanii.models.ScaniiProcessingResult;
import java.nio.file.Paths;
public class Sample {
public static void main(String[] args) {
// in this example args contains the key secret and file path:
String key = args[0];
String secret = args[1];
ScaniiClient client = ScaniiClients.createDefault(key, secret);
ScaniiProcessingResult result = client.process(Paths.get(args[2]));
System.out.printf("checksum: %s, content-type: %s and findings: %s%n",
result.getChecksum(),
result.getContentType(),
result.getFindings());
if (result.getFindings().isEmpty()) {
System.out.println("Content is safe!");
}
}
}
```Please note that you will need a valid scanii.com account and API Credentials.
* More advanced usage examples can be
found [here](https://github.com/uvasoftware/scanii-java/blob/master/src/test/java/com/uvasoftware/scanii/ScaniiClientTest.java)
* General documentation on scanii can be found [here](http://docs.scanii.com)
* Javadocs can be found [here](https://www.javadoc.io/doc/com.uvasoftware/scanii-java/latest/index.html)