Examples of Password


Examples of com.sun.enterprise.security.auth.digest.api.Password

                NestedDigestAlgoParam data = new NestedDigestAlgoParamImpl(DATA, list);

                DigestAlgorithmParameter[] dataList = new DigestAlgorithmParameter[2];
                dataList[0] = key;
                dataList[1] = data;
                Password pwd = new Password() {

                    public int getType() {
                        return Password.PLAIN_TEXT;
                    }
View Full Code Here

Examples of com.sun.messaging.jmq.util.Password

    /**
     * Return the password without echoing.
     */
    public static String getPassword() {

        Password pw = new Password();
        if (pw.echoPassword()) {
            CommonGlobals.stdOutPrintln(ar.getString(ar.W_ECHO_PASSWORD));
        }
        CommonGlobals.stdOutPrint(ar.getString(ar.I_JMQCMD_PASSWORD));
        return pw.getPassword();
    }
View Full Code Here

Examples of com.sun.messaging.jmq.util.Password

    /**
     * Return user input without echoing, if possible. 
     */
    private String getPassword(String question)  {

  Password pw = new Password();
    if (pw.echoPassword()) {
        Globals.stdOutPrintln(ar.getString(ar.W_ECHO_PASSWORD));
    }
  Globals.stdOutPrint(question);
  return pw.getPassword();
    }   
View Full Code Here

Examples of com.sun.messaging.jmq.util.Password

                   + userrep + ".password");
                 if (DN != null && DN.trim().length() > 0) {
                     // we have a DN
                     if (pwd == null || pwd.trim().length() == 0) {
                         int retry = 0;
                         Password pw = null;
                         boolean setProp = pwd == null || pwd.equals("");
                         while (pwd == null ||
                                  pwd.trim().equals("") && retry < 5) {
                              pw = new Password();
                              if (pw.echoPassword()) {
                                  System.err.println(Globals.getBrokerResources().
                                      getString(BrokerResources.W_ECHO_PASSWORD));
                              }
                              System.err.print(
                                  Globals.getBrokerResources().
                                  getString(BrokerResources.M_ENTER_KEY_LDAP,
                                  DN));
                              System.err.flush();

                              pwd = pw.getPassword();

                              // Limit the number of times we try
                              // reading the passwd.
                              // If the VM is run in the background
                              // the readLine()
View Full Code Here

Examples of com.sun.messaging.jmq.util.Password

        server = "ldap://"+server;
        bindDN = authProps.getProperty(prefix+PROP_BINDDN_SUFFIX);
        if (bindDN != null && !bindDN.trim().equals("")) {
            bindPW = authProps.getProperty(prefix+PROP_BINDPW_SUFFIX);
            int retry = 0;
            Password pw = null;
            boolean setProp = bindPW == null || bindPW.equals("");
            while (bindPW == null || bindPW.trim().equals("") && retry < 5) {
                pw = new Password();
                if (pw.echoPassword()) {
                    System.err.println(Globals.getBrokerResources().getString(BrokerResources.W_ECHO_PASSWORD));
                }
                System.err.print(Globals.getBrokerResources().getString(BrokerResources.M_ENTER_KEY_LDAP, bindDN));
                System.err.flush();

                bindPW = pw.getPassword();

                // Limit the number of times we try reading the passwd.
                // If the VM is run in the background the readLine()
                // will always return null and we'd get stuck in the loop
                retry++;
View Full Code Here

Examples of com.sun.messaging.jmq.util.Password

     * Return password input. 
     */
    public static String getPasswordInput(UserMgrProperties userMgrProps,
      String question) {

  Password pw = new Password();
    if (pw.echoPassword()) {
        Output.stdOutPrintln(Globals.getBrokerResources().
                getString(BrokerResources.W_ECHO_PASSWORD));
    }
  Output.stdOutPrint(question);
  return pw.getPassword();

    }
View Full Code Here

Examples of com.sun.messaging.jmq.util.Password

        needPassword = config.getBooleanProperty(needPasswordProp, DEFAULT_NEEDPASSWORD);

        if (dbpw == null && needPassword) {
            int retry = 0;
            Password pw = new Password();
            if (pw.echoPassword()) {
                System.err.println(Globals.getBrokerResources().
                    getString(BrokerResources.W_ECHO_PASSWORD));
            }
            while ((dbpw == null || dbpw.trim().equals("")) && retry < 5) {
                System.err.print(br.getString(
                    BrokerResources.M_ENTER_DB_PWD, openDBUrl));
                System.err.flush();

                dbpw = pw.getPassword();

                // Limit the number of times we try reading the passwd.
                // If the VM is run in the background the readLine()
                // will always return null and we'd get stuck in the loop
                retry++;
View Full Code Here

Examples of com.sun.messaging.jmq.util.Password

    }

    public static String getKeystorePassword() throws IOException {
  if (pass_phrase == null)  {
      BrokerConfig bcfg;
             Password pw = null;

      bcfg = Globals.getConfig();           

            // Get Passphrase from property setting
            pass_phrase = bcfg.getProperty(KEYSTORE_PASSWORD_PROP);
            // if passphrase is null then get it thro' user interaction
            int retry = 0;
            pw = new Password();
            if (pw.echoPassword()) {
                System.err.println(Globals.getBrokerResources().
                    getString(BrokerResources.W_ECHO_PASSWORD));
            }
            while ((pass_phrase == null || pass_phrase.equals("")) &&
                retry <= 5) {

                System.err.print(br.getString(
                    BrokerResources.M_ENTER_KEY_PWD,
                    getKeystoreLocation()));
                    System.err.flush();

                if (Broker.getBroker().background) {
                    // We're running in the background and can't
                    // read the password. We still prompt for it
                    // so it's more obvious what's going on
                    // (instead of just silently failing)
                    // See 4451214
                    System.err.print("\n");
                    break;
                }

                pass_phrase = pw.getPassword();
   
                // Limit the number of times we try reading the passwd.
                // If the VM is run in the background the readLine()
                // will always return null and we'd get stuck
                // in the loop
View Full Code Here

Examples of lineage2.gameserver.handler.voicecommands.impl.Password

    registerVoicedCommandHandler(new Repair());
    registerVoicedCommandHandler(new ServerInfo());
    registerVoicedCommandHandler(new Wedding());
    registerVoicedCommandHandler(new WhoAmI());
    registerVoicedCommandHandler(new Online());
    registerVoicedCommandHandler(new Password());
  }
View Full Code Here

Examples of net.sourceforge.javautil.common.password.Password

    this.info(msg);
    return new UnencryptedPassword(new String(console.getPassword()));
  }

  public Password password(String msg, String lockerId, PasswordLocker... lockers) {
    Password pw = this.password(msg);
   
    PasswordLocker locker = null;
    if (lockers.length == 1) {
      if (this.confirm("Do you wish to save this password", true)) locker = lockers[0];
    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.