net.java.truecommons.key.spec.prompting.KeyPromptingCancelledException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truecommons-key-spec Show documentation
Show all versions of truecommons-key-spec Show documentation
Specifies a pluggable API for key management.
The newest version!
/*
* Copyright (C) 2005-2015 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truecommons.key.spec.prompting;
import net.java.truecommons.key.spec.PersistentUnknownKeyException;
import javax.annotation.Nullable;
/**
* Thrown to indicate that the retrieval of the key to open or create a
* protected resource has been cancelled.
* This is normally caused by user input, for example if the user has closed
* the prompting dialog.
*
* @since TrueCommons 2.2
* @author Christian Schlichtherle
*/
public class KeyPromptingCancelledException extends PersistentUnknownKeyException {
private static final long serialVersionUID = 7645927619378423566L;
public KeyPromptingCancelledException() {
super("Key prompting has been cancelled!");
}
public KeyPromptingCancelledException(@Nullable Throwable cause) {
super("Key prompting has been cancelled!", cause);
}
}