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 class is not specifically blacklisted, and is not within a blacklisted package.
|
boolean |
isSpecificallyWhitelistedClass(String relativePath)
Returns true if the given relative path (for a classfile name, including ".class") matches a
specifically-whitelisted (and non-blacklisted) classfile's relative path.
|
boolean |
jarIsWhitelisted(String jarName)
Returns true if a jarfile is whitelisted and not blacklisted.
|
ScanSpec.ScanSpecPathMatch |
pathWhitelistMatchStatus(String relativePath)
Returns true if the given directory 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 ScanSpec.ScanSpecPathMatch pathWhitelistMatchStatus(String relativePath)
public boolean isSpecificallyWhitelistedClass(String relativePath)
public boolean classIsNotBlacklisted(String className)
public boolean jarIsWhitelisted(String jarName)
Copyright © 2016. All rights reserved.