Integrated Symantec antivirus scan engine in Java EE

Source: Internet
Author: User
Tags virus scan eicar
Symantec antivirus scanning engine is an enterprise-class anti-virus engine, and can be integrated with various environments, the current project needs in the Java EE environment to use this technology, it is published to achieve the method for reference.

For this purpose, a JAR package has been developed to interact with the scan Server, and a trial version of this product is available for download: http://www.symantec.com/enterprise/products/trialware.jsp?pcid= 1008&pvid=836_1

I will provide the download of this jar package in the file download, named Virus-scan-connect.zip

The following is the simplest implementation step

0 Install Virus Scan Server

sse-installconfig-20061220

<1>, Install the SSE V51:

0, Download Trial version software and license.

Http://symantec.com/enterprise/products/trialware.jsp?pcid=1008&pvid=836_1

1, Install JDK 5;
2, Install ScanEngine.exe, setup the Admin port and password;
3, Install license file

(1) By Web Console, https://ip:8004/; System-->license-->install.

[Note, but with the HTTPS is available.]

(2) Copy license file to C:\Program Files\Common Files\symantec shared\licenses;

4, Working with ICAP;

1 Virus Scan in JSP

1 Import the Jar Package-virusscan-0.1.jar

2 A Simple Implement practice is

1 Sample invode Code:
2 public static void Main (string[] args) {
3//icap://10.225.69.89:1344/avscan is the URL of the scan server
4 Virusscanmanager vsm=new Virusscanmanager ("Icap://10.225.69.89:1344/avscan");
5
6
7
8 String testfile= "./test/eicar.com.txt";
9 InputStream In=null;
10
One try {
//eicar is the test virus code
//in=new Bytearrayinputstream (Eicar.geteicar ());
In=new FileInputStream (testfile);
The catch (Exception e) {e.printstacktrace ();
16
Vsm.processscanvirus ("EicarTestFile.txt", "Plain/text", in);
18
19}
20

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.