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];