View Javadoc
1   package org.codehaus.plexus.archiver.filters;
2   
3   import java.io.InputStream;
4   import org.codehaus.plexus.archiver.ArchiveFileFilter;
5   import org.codehaus.plexus.util.SelectorUtils;
6   
7   /**
8    * @deprecated Use {@link JarSecurityFileSelector}
9    */
10  @Deprecated
11  public class JarSecurityFileFilter
12      implements ArchiveFileFilter
13  {
14  
15      public static final String[] SECURITY_FILE_PATTERNS = JarSecurityFileSelector.SECURITY_FILE_PATTERNS;
16  
17      @Override
18      public boolean include( InputStream dataStream, String entryName )
19      {
20          for ( String pattern : SECURITY_FILE_PATTERNS )
21          {
22              if ( SelectorUtils.match( pattern, entryName ) )
23              {
24                  return false;
25              }
26          }
27  
28          return true;
29      }
30  
31  }