if (System.console() != null) {
                        signArgs.keyPass = String.valueOf(System.console().readPassword());
                    } else {
                        signArgs.keyPass = s.next();
                    }