Package io.codemodder
Interface DependencyGAV
- All Known Implementing Classes:
DependencyGAV.Default
public interface DependencyGAV
Models a Java dependency we might want to add.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DependencyGAV
The pixee Java Security Toolkit is required by many weaves/visitors, so we'll expose it here.static final String
static final String
static final DependencyGAV
There are multiple XSS rules require an XSS encoder. -
Method Summary
Modifier and TypeMethodDescriptionartifact()
The artifact of the dependency.static DependencyGAV
createDefault
(String group, String artifact, String version) Create a newDependencyGAV
with the given group, artifact, and version -- the bare minimum to describe a dependency for injection.static DependencyGAV
createDefault
(String group, String artifact, String version, String justification, String license, String repositoryUrl, Boolean noTransitiveDependencies) Create a newDependencyGAV
with the given group, artifact, version, justification, license, and repository URL.group()
The group of the dependency.Whether this dependency has transitive dependencies.The justification for adding this dependency.license()
The license for this dependency.The repository URL for this dependency's source control.version()
The version of the dependency.
-
Field Details
-
JAVA_SECURITY_TOOLKIT_VERSION
- See Also:
-
JAVA_SECURITY_TOOLKIT_GAV
- See Also:
-
JAVA_SECURITY_TOOLKIT
The pixee Java Security Toolkit is required by many weaves/visitors, so we'll expose it here. -
OWASP_XSS_JAVA_ENCODER
There are multiple XSS rules require an XSS encoder.
-
-
Method Details
-
group
String group()The group of the dependency. For example,org.owasp
orcom.google.guava
. -
artifact
String artifact()The artifact of the dependency. For example,owasp-java-html-sanitizer
. -
version
String version()The version of the dependency. For example,2019.2
. -
justification
The justification for adding this dependency. For example,"We need this to sanitize HTML"
-
repositoryUrl
The repository URL for this dependency's source control. If unknown, this will be empty. -
hasNoTransitiveDependencies
Whether this dependency has transitive dependencies. If unknown, this will be empty. -
license
The license for this dependency. -
createDefault
Create a newDependencyGAV
with the given group, artifact, and version -- the bare minimum to describe a dependency for injection. If more information is available, consider usingcreateDefault(String, String, String, String, String, String, Boolean)
which allows for more actionable information for developers to make informed choices about dependencies. -
createDefault
static DependencyGAV createDefault(String group, String artifact, String version, String justification, String license, String repositoryUrl, Boolean noTransitiveDependencies) Create a newDependencyGAV
with the given group, artifact, version, justification, license, and repository URL.- Parameters:
group
- the group of the dependencyartifact
- the artifact of the dependencyversion
- the version of the dependencyjustification
- a short text for the justification for adding this dependency (can be null)license
- the license for this dependency (seeDependencyLicenses
for common licenses) (can be null)repositoryUrl
- the repository URL for this dependency's source control (can be null)
-