]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/internal/auth/ConsoleCallbackHandler.java
Merge security.ui bundle in the cms.ui.workbench bundle
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / auth / ConsoleCallbackHandler.java
index acb75d1e52b0d57655d85b785a4cca9d8a2f14c4..44bc331592160ebc3a79f0fefdcc40790d71a421 100644 (file)
@@ -13,8 +13,7 @@ import javax.security.auth.callback.PasswordCallback;
 import javax.security.auth.callback.TextOutputCallback;
 import javax.security.auth.callback.UnsupportedCallbackException;
 
-import org.argeo.ArgeoException;
-import org.argeo.util.LocaleChoice;
+import org.argeo.cms.CmsException;
 
 /** Callback handler to be used with a command line UI. */
 public class ConsoleCallbackHandler implements CallbackHandler {
@@ -24,7 +23,7 @@ public class ConsoleCallbackHandler implements CallbackHandler {
                        UnsupportedCallbackException {
                Console console = System.console();
                if (console == null)
-                       throw new ArgeoException("No console available");
+                       throw new CmsException("No console available");
 
                PrintWriter writer = console.writer();
                for (int i = 0; i < callbacks.length; i++) {