com.h3xstream.retirejs.repo
Class ScannerFacade

java.lang.Object
  extended by com.h3xstream.retirejs.repo.ScannerFacade

public class ScannerFacade
extends Object


Constructor Summary
protected ScannerFacade(VulnerabilitiesRepository repo)
          For testing purpose only
 
Method Summary
static ScannerFacade getInstance()
          Obtain the singleton instance.
 List<JsLibraryResult> scanScript(String path, byte[] respBytes, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannerFacade

protected ScannerFacade(VulnerabilitiesRepository repo)
                 throws IOException
For testing purpose only

Parameters:
repo - Mock repository (For testing purpose)
Throws:
IOException - Unable to load the repository
Method Detail

getInstance

public static ScannerFacade getInstance()
                                 throws IOException
Obtain the singleton instance. It make sure the repo is loaded the first time.

Returns:
Will always return the same instance
Throws:
IOException - Unable to load the repository

scanScript

public List<JsLibraryResult> scanScript(String path,
                                        byte[] respBytes,
                                        int offset)


Copyright © 2015. All rights reserved.