Catch SecretNotFound exceptions
This commit is contained in:
		| @@ -85,6 +85,9 @@ namespace Novell.CASA.DataEngines | |||||||
|  |  | ||||||
|                      while (se.MoveNext()) |                      while (se.MoveNext()) | ||||||
|                      { |                      { | ||||||
|  |                          try | ||||||
|  |                          { | ||||||
|  |  | ||||||
|  |  | ||||||
|                              Secret secret = store.getSecret(se.Current); |                              Secret secret = store.getSecret(se.Current); | ||||||
|                              NameValueCollection nvc = secret.getKeyValueCollection(); |                              NameValueCollection nvc = secret.getKeyValueCollection(); | ||||||
| @@ -92,7 +95,7 @@ namespace Novell.CASA.DataEngines | |||||||
|                              mi_secret = doc.CreateElement(ConstStrings.CCF_SECRET); |                              mi_secret = doc.CreateElement(ConstStrings.CCF_SECRET); | ||||||
|                              synchAttr = doc.CreateAttribute(ConstStrings.CCF_SYNCH); |                              synchAttr = doc.CreateAttribute(ConstStrings.CCF_SYNCH); | ||||||
|                              //TBD: |                              //TBD: | ||||||
|                         synchAttr.Value = "Persistent Secret" ; |                              synchAttr.Value = "Persistent Secret"; | ||||||
|                              secidAttr = doc.CreateAttribute(ConstStrings.CCF_ID); |                              secidAttr = doc.CreateAttribute(ConstStrings.CCF_ID); | ||||||
|                              secidAttr.Value = se.Current; |                              secidAttr.Value = se.Current; | ||||||
|                              mi_secret.SetAttributeNode(secidAttr); |                              mi_secret.SetAttributeNode(secidAttr); | ||||||
| @@ -122,7 +125,7 @@ namespace Novell.CASA.DataEngines | |||||||
|  |  | ||||||
|                              } |                              } | ||||||
|  |  | ||||||
| /* |                              /* | ||||||
|                                                     //Time |                                                     //Time | ||||||
|                                                     XmlElement Time1 = doc.CreateElement(ConstStrings.CCF_TIME); |                                                     XmlElement Time1 = doc.CreateElement(ConstStrings.CCF_TIME); | ||||||
|  |  | ||||||
| @@ -144,11 +147,15 @@ namespace Novell.CASA.DataEngines | |||||||
|                                                     Time1.AppendChild(acc1); |                                                     Time1.AppendChild(acc1); | ||||||
|  |  | ||||||
|                                                     mi_secret.AppendChild(Time1); |                                                     mi_secret.AppendChild(Time1); | ||||||
| */ |                              */ | ||||||
|  |  | ||||||
|                              //Finally Add Secret to Elem |                              //Finally Add Secret to Elem | ||||||
|                              keychain.AppendChild(mi_secret); |                              keychain.AppendChild(mi_secret); | ||||||
|  |                          } | ||||||
|  |                          catch (Exception) | ||||||
|  |                          { | ||||||
|  |                              //Console.WriteLine("Secret Not Found: " + se.Current);                              | ||||||
|  |                          } | ||||||
|                      } |                      } | ||||||
|               } |               } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user