Package org.eclipse.equinox.security.storage

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


      if (allFeedsPreferences.nodeExists(EncodingUtils.encodeSlashes(link.toString()))) { // Feed Node
        ISecurePreferences feedPreferences = allFeedsPreferences.node(EncodingUtils.encodeSlashes(link.toString()));
        if (feedPreferences.nodeExists(EncodingUtils.encodeSlashes(realm != null ? realm : REALM))) { // Realm Node
          ISecurePreferences realmPreferences = feedPreferences.node(EncodingUtils.encodeSlashes(realm != null ? realm : REALM));
          realmPreferences.clear();
          realmPreferences.removeNode();
          try {
            feedPreferences.flush();
          } catch (IOException e) {
            throw new CredentialsException(Activator.getDefault().createErrorStatus(e.getMessage(), e));
          }
View Full Code Here


    if (oldServerId != null && !oldServerId.equals(newServerId)) {
      initialize();
      ISecurePreferences preferences = getSecurePreferences();
      if (preferences != null) {
        preferences.removeNode();
      }
    }
   
    this.serverId = newServerId;
   
View Full Code Here

  public void clearCredentials(URIish uri) throws IOException {
    String pathName = calcNodePath(uri);
    if (!preferences.nodeExists(pathName))
      return;
    ISecurePreferences node = preferences.node(pathName);
    node.removeNode();
    node.flush();
  }

}
View Full Code Here

          // In any other case, remove the item from the storage (a
          // host node, or a user node).
          for (String host : listedHosts) {
            if (!hostToUsers.containsKey(host)) {
              ISecurePreferences hostNode = node.node(host);
              hostNode.removeNode();
            } else {
              if (node.nodeExists(host)) {
                ISecurePreferences hostNode = node.node(host);
                // holds the user names field in the secure
                // preference
View Full Code Here

      if (allFeedsPreferences.nodeExists(EncodingUtils.encodeSlashes(link.toString()))) { // Feed Node
        ISecurePreferences feedPreferences = allFeedsPreferences.node(EncodingUtils.encodeSlashes(link.toString()));
        if (feedPreferences.nodeExists(EncodingUtils.encodeSlashes(realm != null ? realm : REALM))) { // Realm Node
          ISecurePreferences realmPreferences = feedPreferences.node(EncodingUtils.encodeSlashes(realm != null ? realm : REALM));
          realmPreferences.clear();
          realmPreferences.removeNode();
          try {
            feedPreferences.flush();
          } catch (IOException e) {
            throw new CredentialsException(Activator.getDefault().createErrorStatus(e.getMessage(), e));
          }
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.