
de.schlichtherle.key.passwd.swing.BasicInvalidCreateKeyFeedback Maven / Gradle / Ivy
/*
* Copyright (C) 2006-2010 Schlichtherle IT Services
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.schlichtherle.key.passwd.swing;
/**
* Provides feedback by beeping using the default toolkit and disabling the
* default button in the root pane for three seconds
* when prompting for a key to create or overwrite a protected resource
* and the last input was invalid.
*
* Note that the root pane is normally the root pane of an enclosing
* JOptionPane which has the OK button set as its default button.
* This is to inhibit the use of a GUI robot for exhaustive password searching.
*
* If you would like to play a nice sound for feedback, you need to override
* the {@link #startSound} method.
*
* Warning: Playing a {@code java.applet.AudioClip} on J2SE
* 1.4.2_12 causes a client application not to terminate until System.exit(0)
* is called explicitly - hence this feature is currently not implemented in
* this class!
* This issue is fixed in JSE 1.5.0_07 (and probably earlier versions).
*
* @author Christian Schlichtherle
* @version $Id: BasicInvalidCreateKeyFeedback.java,v 1.4 2010/08/20 13:09:39 christian_schlichtherle Exp $
* @since TrueZIP 6.4
*/
public class BasicInvalidCreateKeyFeedback extends BasicInvalidKeyFeedback {
}