Package org.eclipse.egit.core.securestorage

Examples of org.eclipse.egit.core.securestorage.UserPasswordCredentials


      else
        isSpecial = true;
    }

    if (!isSpecial && (userItem != null || passwordItem != null)) {
      UserPasswordCredentials credentials = null;
      if ((user != null) && (password != null))
        credentials = new UserPasswordCredentials(user, password);
      else
        credentials = SecureStoreUtils.getCredentialsQuietly(uri);

      if (credentials == null) {
        credentials = getCredentialsFromUser(uri);
        if (credentials == null)
          return false;
      }
      if (userItem != null)
        userItem.setValue(credentials.getUser());
      if (passwordItem != null)
        passwordItem.setValue(credentials.getPassword().toCharArray());
      return true;
    }

    // special handling for non-user,non-password type items
    final boolean[] result = new boolean[1];
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.securestorage.UserPasswordCredentials

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.