com.h3xstream.retirejs.repo
Class ScannerFacade
java.lang.Object
com.h3xstream.retirejs.repo.ScannerFacade
public class ScannerFacade
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.