Package org.freeplane.core.ui.components

Examples of org.freeplane.core.ui.components.EnterPasswordDialog


    public StringBuilder getPasswordWithConfirmation() {
        return getPasswordImpl(true);
    }

    private StringBuilder getPasswordImpl(boolean withConfirmation) {
        final EnterPasswordDialog pwdDialog = new EnterPasswordDialog(Controller.getCurrentController()
            .getViewController().getFrame(), withConfirmation);
        pwdDialog.setModal(true);
        pwdDialog.setVisible(true);
        if (pwdDialog.getResult() == EnterPasswordDialog.CANCEL) {
            isCancelled = true;
            return null;
        }
        return pwdDialog.getPassword();
    }
View Full Code Here


  /**
   * @param e
   */
  private StringBuilder getUsersPassword() {
    final EnterPasswordDialog pwdDialog = new EnterPasswordDialog(Controller.getCurrentController().getViewController().getFrame(),
        true);
    pwdDialog.setModal(true);
    pwdDialog.show();
    if (pwdDialog.getResult() == EnterPasswordDialog.CANCEL) {
      return null;
    }
    final StringBuilder password = pwdDialog.getPassword();
    return password;
  }
View Full Code Here

    return false;
  }

  public String signScript(final String pScript) {
    final ScriptContents content = new ScriptContents(pScript);
    final EnterPasswordDialog pwdDialog = new EnterPasswordDialog(Controller.getCurrentController().getViewController().getJFrame(), false);
    pwdDialog.setModal(true);
    pwdDialog.setVisible(true);
    if (pwdDialog.getResult() == EnterPasswordDialog.CANCEL) {
      return content.mScript;
    }
    final char[] password = pwdDialog.getPassword().toString().toCharArray();
    initializeKeystore(password);
    try {
      final Signature instance = Signature.getInstance("SHA1withDSA");
      String keyName = SignedScriptHandler.FREEPLANE_SCRIPT_KEY_NAME;
      final String propertyKeyName = ResourceController.getResourceController().getProperty(
View Full Code Here

TOP

Related Classes of org.freeplane.core.ui.components.EnterPasswordDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.