Home | History | Annotate | Download | only in vpn

Lines Matching defs:property

52                      const Property* properties,
66 if ((properties_[i].flags & Property::kEphemeral)) {
69 const string property = properties_[i].property;
70 if (properties_[i].flags & Property::kArray) {
71 CHECK(!(properties_[i].flags & Property::kCredential))
72 << "Property cannot be both an array and a credential";
74 if (storage->GetStringList(storage_id, property, &value)) {
75 args_.SetStrings(property, value);
77 args_.RemoveStrings(property);
81 bool loaded = (properties_[i].flags & Property::kCredential) ?
82 storage->GetCryptedString(storage_id, property, &value) :
83 storage->GetString(storage_id, property, &value);
85 args_.SetString(property, value);
87 args_.RemoveString(property);
99 if ((properties_[i].flags & Property::kEphemeral)) {
102 bool credential = (properties_[i].flags & Property::kCredential);
103 const string property = properties_[i].property;
104 if (properties_[i].flags & Property::kArray) {
106 << "Property cannot be both an array and a credential";
107 if (!args_.ContainsStrings(property)) {
108 storage->DeleteKey(storage_id, property);
111 Strings value = args_.GetStrings(property);
112 storage->SetStringList(storage_id, property, value);
114 if (!args_.ContainsString(property) ||
116 storage->DeleteKey(storage_id, property);
119 string value = args_.GetString(property);
121 storage->SetCryptedString(storage_id, property, value);
123 storage->SetString(storage_id, property, value);
134 (Property::kEphemeral | Property::kCredential))) {
135 args_.RemoveString(properties_[i].property);
143 if (properties_[i].flags & Property::kArray) {
145 properties_[i].property,
155 properties_[i].property,
175 if (args_.ContainsString(properties_[index].property)) {
176 args_.RemoveString(properties_[index].property);
178 error->Populate(Error::kNotFound, "Property is not set");
184 if (args_.ContainsStrings(properties_[index].property)) {
185 args_.RemoveStrings(properties_[index].property);
187 error->Populate(Error::kNotFound, "Property is not set");
216 if (args_.ContainsString(properties_[index].property) &&
217 args_.GetString(properties_[index].property) == value) {
220 args_.SetString(properties_[index].property, value);
227 if (args_.ContainsStrings(properties_[index].property) &&
228 args_.GetStrings(properties_[index].property) == value) {
231 args_.SetStrings(properties_[index].property, value);
241 if ((properties_[i].flags & Property::kWriteOnly)) {
244 string prop = properties_[i].property;
255 if (properties_[i].flags & Property::kArray) {