Package org.eclipse.equinox.security.storage

Examples of org.eclipse.equinox.security.storage.ISecurePreferences.childrenNames()


    /* Check if Bundle is Stopped */
    if (secureRoot == null)
      return;

    String[] childrenNames = secureRoot.childrenNames();
    for (String child : childrenNames) {
      secureRoot.node(child).removeNode();
    }

    /* Flush to Disk */
 
View Full Code Here


          // anything that should not be there.
          ISecurePreferences root = SecurePreferencesFactory
              .getDefault();
          ISecurePreferences node = root
              .node(IPHPDebugConstants.SSH_TUNNEL_SECURE_PREF_NODE);
          String[] listedHosts = node.childrenNames();
          // For each host that we have in the secured storage, check
          // that it's existing in the launch configurations and that
          // it contains
          // only the user names that are defined.
          // In any other case, remove the item from the storage (a
View Full Code Here

    /* Check if Bundle is Stopped */
    if (secureRoot == null)
      return;

    String[] childrenNames = secureRoot.childrenNames();
    for (String child : childrenNames) {
      secureRoot.node(child).removeNode();
    }

    /* Flush to Disk */
 
View Full Code Here

    List results = new ArrayList();
    for (int i = 0; i < namespaceEntries.length; i++) {
      IIDEntry[] idEntries = namespaceEntries[i].getIDEntries();
      for (int j = 0; j < idEntries.length; j++) {
        ISecurePreferences pref = idEntries[j].getPreferences();
        String[] names = pref.childrenNames();
        for (int k = 0; k < names.length; k++) {
          if (names[k].equals(CONTAINER_NODE_NAME))
            results.add(new ContainerEntry(idEntries[j]));
        }
      }
View Full Code Here

   * @see org.eclipse.ecf.storage.IContainerStore#retrieve(org.eclipse.ecf.storage.IIDEntry)
   */
  public IContainerEntry retrieve(IIDEntry idEntry) {
    Assert.isNotNull(idEntry);
    ISecurePreferences pref = idEntry.getPreferences();
    String[] names = pref.childrenNames();
    IContainerEntry result = null;
    for (int k = 0; k < names.length; k++) {
      if (names[k].equals(CONTAINER_NODE_NAME))
        result = new ContainerEntry(idEntry);
    }
View Full Code Here

  public IIDEntry[] getAssociates(String key) {
    if (key == null)
      return new IIDEntry[0];
    ISecurePreferences associateNode = prefs.node(key);
    String[] childrenNames = associateNode.childrenNames();
    SortedMap results = new TreeMap();
    for (int i = 0; i < childrenNames.length; i++) {
      addAssociateFromName(childrenNames[i], results);
    }
    return (IIDEntry[]) results.values().toArray(new IIDEntry[] {});
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.