Package org.eclipse.equinox.security.storage

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


    if (secureRoot == null)
      return;

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

    /* Flush to Disk */
    try {
      secureRoot.flush();
View Full Code Here


    if (!securePreferencesDisabled.get()) {
      String serverId = getServerId();
      if (serverId != null) {
        ISecurePreferences securePreferences = SecurePreferencesFactory.getDefault().node(
            CloudFoundryPlugin.PLUGIN_ID);
        securePreferences = securePreferences.node(EncodingUtils.encodeSlashes(serverId));
        return securePreferences;
      }
    }
    return null;
  }
View Full Code Here

      .append(launch.getName())
      .append(Path.SEPARATOR).toString();

    ISecurePreferences root = SecurePreferencesFactory.getDefault();
    String encoded = URLEncoder.encode(secureKey, "UTF-8"); //$NON-NLS-1$
    return root.node(encoded);
    }
}
View Full Code Here

    if (secureRoot == null)
      return;

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

    /* Flush to Disk */
    try {
      secureRoot.flush();
View Full Code Here

    StringBuilder bld = new StringBuilder();
    bld.append("/Puppetforge Credentials/"); //$NON-NLS-1$
    bld.append(login);
    bld.append('/');
    Checksums.appendSHA1(bld, host);
    return preferences.node(bld.toString());
  }

  private String loadSecurePassword(String login) {
    ISecurePreferences node = getPasswordNode(login);
    if(node != null)
View Full Code Here

   * @param idEntry
   */
  public ContainerEntry(IIDEntry idEntry) {
    this.idEntry = idEntry;
    ISecurePreferences prefs = idEntry.getPreferences();
    this.prefs = prefs.node(ContainerStore.CONTAINER_NODE_NAME);
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.storage.IContainerEntry#createContainer()
   */
 
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.