public class ScanSpec extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ScanSpec.ScanSpecPathMatch
Whether a path is a descendant of a blacklisted path, or an ancestor or descendant of a whitelisted path.
|
Modifier and Type | Field and Description |
---|---|
boolean |
scanJars
True if jarfiles should be scanned.
|
boolean |
scanNonJars
True if non-jarfiles (directories) should be scanned.
|
Modifier and Type | Method and Description |
---|---|
boolean |
classIsNotBlacklisted(String className)
Returns true if the given class name is not blacklisted or is explicitly whitelisted.
|
boolean |
classIsWhitelisted(String className)
Returns true if the given class name is whitelisted and not blacklisted, or if it is in a whitelisted,
non-blacklisted package.
|
boolean |
jarIsWhitelisted(String jarName)
Returns true if a jarfile is whitelisted and not blacklisted.
|
boolean |
pathIsWhitelisted(String relativePath)
Returns true if the given path is within a whitelisted, non-blacklisted package.
|
ScanSpec.ScanSpecPathMatch |
pathWhitelistMatchStatus(String path)
See whether the given path is a descendant of a blacklisted path, or an ancestor or descendant of a
whitelisted path.
|
public final boolean scanJars
public final boolean scanNonJars
public ScanSpec(String[] scanSpecs)
public boolean classIsNotBlacklisted(String className)
public boolean classIsWhitelisted(String className)
public boolean pathIsWhitelisted(String relativePath)
public ScanSpec.ScanSpecPathMatch pathWhitelistMatchStatus(String path)
public boolean jarIsWhitelisted(String jarName)
Copyright © 2016. All rights reserved.