1 package org.neuclear.commons.crypto.passphraseagents.swing;
2
3 import java.io.File;
4
5 /*
6 * The NeuClear Project and it's libraries are
7 * (c) 2002-2004 Antilles Software Ventures SA
8 * For more information see: http://neuclear.org
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24
25 /***
26 * User: pelleb
27 * Date: May 14, 2004
28 * Time: 1:48:24 PM
29 */
30 public class JKSFilter extends javax.swing.filechooser.FileFilter {
31 public boolean accept(File file) {
32 String filename = file.getName();
33 return file.isDirectory() || filename.endsWith(".jks");
34 }
35
36 public String getDescription() {
37 return "*.jks";
38 }
39 }
This page was automatically generated by Maven