1 /* 2 * This file is part of dependency-check-maven. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 * Copyright (c) 2018 Jeremy Long. All Rights Reserved. 17 */ 18 package org.owasp.dependencycheck.maven; 19 20 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 21 22 /** 23 * Simple POJO for Maven configuration. 24 * 25 * @author Jeremy Long 26 */ 27 public class Retirejs { 28 29 /** 30 * The retire JS content filters. 31 */ 32 private String[] filters; 33 /** 34 * Whether or not retire JS should filter non-vulnerable jar files from the 35 * report. 36 */ 37 private Boolean filterNonVulnerable; 38 39 /** 40 * Returns the retire JS content filters. 41 * 42 * @return the retire JS content filters 43 */ 44 @SuppressFBWarnings(justification = "use case for configuration object - these warnings are okay", 45 value = {"EI_EXPOSE_REP", "UWF_UNWRITTEN_FIELD"}) 46 public String[] getFilters() { 47 return filters; 48 } 49 50 /** 51 * Returns whether or not retire JS should remove non-vulnerable JS files 52 * from the report. 53 * 54 * @return whether or not retire JS should remove non-vulnerable JS files 55 * from the report 56 */ 57 @SuppressFBWarnings(justification = "use case for configuration object - the warning is okay", 58 value = {"UWF_UNWRITTEN_FIELD"}) 59 public Boolean getFilterNonVulnerable() { 60 return filterNonVulnerable; 61 } 62 }