Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,6 +21,7 @@
*/

import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -64,6 +65,9 @@ public String toString() {
private LibraryQuickFilterType quickFilter;
private boolean includeUsed;
private boolean includeUnused;
private EnumSet<ServerEnvironment> environments;
private List<String> statuses;
private List<String> severities;

public LibraryFilterForm() {
super();
Expand All @@ -78,6 +82,9 @@ public LibraryFilterForm() {
this.quickFilter = null;
this.includeUsed = false;
this.includeUnused = false;
this.environments = EnumSet.noneOf(ServerEnvironment.class);
this.statuses = new ArrayList<>();
this.severities = new ArrayList<>();
}

public List<String> getApps() {
Expand Down Expand Up @@ -160,6 +167,30 @@ public void setIncludeUnused(boolean includeUnused) {
this.includeUnused = includeUnused;
}

public EnumSet<ServerEnvironment> getEnvironments() {
return environments;
}

public void setEnvironments(EnumSet<ServerEnvironment> environments) {
this.environments = environments;
}

public List<String> getStatuses() {
return statuses;
}

public void setStatuses(List<String> statuses) {
this.statuses = statuses;
}

public List<String> getSeverities() {
return severities;
}

public void setSeverities(List<String> severities) {
this.severities = severities;
}

@Override
public String toString() {
String formString = super.toString();
Expand Down Expand Up @@ -199,6 +230,22 @@ public String toString() {
filters.add("quickFilter=" + quickFilter.toString());
}

if (environments != null && !environments.isEmpty()) {
filters.add(
"environments="
+ environments.stream()
.map(ServerEnvironment::toURIString)
.collect(Collectors.joining(",")));
}

if (!statuses.isEmpty()) {
filters.add("statuses=" + String.join(",", statuses));
}

if (!severities.isEmpty()) {
filters.add("severities=" + String.join(",", severities));
}

filters.add("includeUsed=" + includeUsed);
filters.add("includeUnused=" + includeUnused);

Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/contrastsecurity/http/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/contrastsecurity/models/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/contrastsecurity/models/Chapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2022 - 2025 Contrast Security, Inc.
* Copyright (C) 2022 - 2026 Contrast Security, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading
Loading