1 /* 2 * Copyright 2006 Schlichtherle IT Services 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 17 package de.schlichtherle.key.passwd.swing; 18 19 /** 20 * Provides feedback by beeping using the default toolkit and disabling the 21 * default button in the root pane for three seconds 22 * when prompting for a key to create or overwrite a protected resource 23 * and the last input was invalid. 24 * <p> 25 * Note that the root pane is normally the root pane of an enclosing 26 * JOptionPane which has the OK button set as its default button. 27 * This is to inhibit the use of a GUI robot for exhaustive password searching. 28 * <p> 29 * If you would like to play a nice sound for feedback, you need to override 30 * the {@link #startSound} method. 31 * <p> 32 * <b>Warning:</b> Playing a <code>java.applet.AudioClip</code> on J2SE 33 * 1.4.2_12 causes a client application not to terminate until System.exit(0) 34 * is called explicitly - hence this feature is currently not implemented in 35 * this class! 36 * This issue is fixed in JSE 1.5.0_07 (and probably earlier versions). 37 * 38 * @author Christian Schlichtherle 39 * @version @version@ 40 * @since TrueZIP 6.4 41 */ 42 public class BasicInvalidCreateKeyFeedback extends BasicInvalidKeyFeedback { 43 } 44