Add CryptAuthApiCallFlow class, the underlying object to handle all CryptAuth API...
[chromium-blink-merge.git] / components / onc / onc_constants.cc
blobc4ea33925ee79184ff5d3becb306fee7a0e89077
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/onc/onc_constants.h"
7 // Constants for ONC properties.
8 namespace onc {
10 const char kAugmentationActiveSetting[] = "Active";
11 const char kAugmentationEffectiveSetting[] = "Effective";
12 const char kAugmentationUserPolicy[] = "UserPolicy";
13 const char kAugmentationDevicePolicy[] = "DevicePolicy";
14 const char kAugmentationUserSetting[] = "UserSetting";
15 const char kAugmentationSharedSetting[] = "SharedSetting";
16 const char kAugmentationUserEditable[] = "UserEditable";
17 const char kAugmentationDeviceEditable[] = "DeviceEditable";
19 // Common keys/values.
20 const char kRecommended[] = "Recommended";
21 const char kRemove[] = "Remove";
23 // Top Level Configuration
24 namespace toplevel_config {
25 const char kCertificates[] = "Certificates";
26 const char kEncryptedConfiguration[] = "EncryptedConfiguration";
27 const char kNetworkConfigurations[] = "NetworkConfigurations";
28 const char kGlobalNetworkConfiguration[] = "GlobalNetworkConfiguration";
29 const char kType[] = "Type";
30 const char kUnencryptedConfiguration[] = "UnencryptedConfiguration";
31 } // namespace toplevel_config
33 // Network Configuration
34 namespace network_config {
35 const char kCellular[] = "Cellular";
36 const char kConnectable[] = "Connectable";
37 const char kConnectionState[] = "ConnectionState";
38 const char kDevice[] = "Device";
39 const char kErrorState[] = "ErrorState";
40 const char kEthernet[] = "Ethernet";
41 const char kGUID[] = "GUID";
42 const char kIPConfigs[] = "IPConfigs";
43 const char kMacAddress[] = "MacAddress";
44 const char kNameServers[] = "NameServers";
45 const char kName[] = "Name";
46 const char kPriority[] = "Priority";
47 const char kProxySettings[] = "ProxySettings";
48 const char kRestrictedConnectivity[] = "RestrictedConnectivity";
49 const char kSavedIPConfig[] = "SavedIPConfig";
50 const char kSearchDomains[] = "SearchDomains";
51 const char kSourceDevice[] = "Device";
52 const char kSourceDevicePolicy[] = "DevicePolicy";
53 const char kSourceNone[] = "None";
54 const char kSourceUser[] = "User";
55 const char kSourceUserPolicy[] = "UserPolicy";
56 const char kSource[] = "Source";
57 const char kStaticIPConfig[] = "StaticIPConfig";
58 const char kType[] = "Type";
59 const char kVPN[] = "VPN";
60 const char kWiFi[] = "WiFi";
61 const char kWimax[] = "WiMAX";
63 std::string CellularProperty(const std::string& property) {
64 return std::string(kCellular) + "." + property;
67 std::string VpnProperty(const std::string& property) {
68 return std::string(kVPN) + "." + property;
71 std::string WifiProperty(const std::string& property) {
72 return std::string(kWiFi) + "." + property;
75 } // namespace network_config
77 namespace network_type {
78 const char kAllTypes[] = "All";
79 const char kCellular[] = "Cellular";
80 const char kEthernet[] = "Ethernet";
81 const char kVPN[] = "VPN";
82 const char kWiFi[] = "WiFi";
83 const char kWimax[] = "WiMAX";
84 const char kWireless[] = "Wireless";
85 } // namespace network_type
87 namespace cellular {
88 const char kActivationState[] = "ActivationState";
89 const char kActivated[] = "Activated";
90 const char kActivating[] = "Activating";
91 const char kNotActivated[] = "NotActivated";
92 const char kPartiallyActivated[] = "PartiallyActivated";
93 const char kActivationType[] = "ActivationType";
94 const char kAllowRoaming[] = "AllowRoaming";
95 const char kAPN[] = "APN";
96 const char kAPNList[] = "APNList";
97 const char kCarrier[] = "Carrier";
98 const char kESN[] = "ESN";
99 const char kFamily[] = "Family";
100 const char kFirmwareRevision[] = "FirmwareRevision";
101 const char kFoundNetworks[] = "FoundNetworks";
102 const char kHardwareRevision[] = "HardwareRevision";
103 const char kHomeProvider[] = "HomeProvider";
104 const char kICCID[] = "ICCID";
105 const char kIMEI[] = "IMEI";
106 const char kIMSI[] = "IMSI";
107 const char kLastGoodAPN[] = "LastGoodAPN";
108 const char kManufacturer[] = "Manufacturer";
109 const char kMDN[] = "MDN";
110 const char kMEID[] = "MEID";
111 const char kMIN[] = "MIN";
112 const char kModelID[] = "ModelID";
113 const char kNetworkTechnology[] = "NetworkTechnology";
114 const char kPRLVersion[] = "PRLVersion";
115 const char kProviderRequiresRoaming[] = "ProviderRequiresRoaming";
116 const char kRoamingState[] = "RoamingState";
117 const char kHome[] = "Home";
118 const char kRoaming[] = "Roaming";
119 const char kServingOperator[] = "ServingOperator";
120 const char kSIMLockStatus[] = "SIMLockStatus";
121 const char kSIMPresent[] = "SIMPresent";
122 const char kSupportedCarriers[] = "SupportedCarriers";
123 const char kSupportNetworkScan[] = "SupportNetworkScan";
124 } // namespace cellular
126 namespace cellular_provider {
127 const char kCode[] = "Code";
128 const char kCountry[] = "Country";
129 const char kName[] = "Name";
130 } // namespace cellular_provider
132 namespace cellular_apn {
133 const char kAccessPointName[] = "AccessPointName";
134 const char kName[] = "Name";
135 const char kUsername[] = "Username";
136 const char kPassword[] = "Password";
137 const char kLocalizedName[] = "LocalizedName";
138 const char kLanguage[] = "LocalizedName";
139 } // namespace cellular_apn
141 namespace cellular_found_network {
142 const char kStatus[] = "Status";
143 const char kNetworkId[] = "NetworkId";
144 const char kShortName[] = "ShortName";
145 const char kLongName[] = "LongName";
146 const char kTechnology[] = "Technology";
147 } // namespace cellular_apn
149 namespace sim_lock_status {
150 const char kLockEnabled[] = "LockEnabled";
151 const char kLockType[] = "LockType";
152 const char kRetriesLeft[] = "RetriesLeft";
155 namespace connection_state {
156 const char kConnected[] = "Connected";
157 const char kConnecting[] = "Connecting";
158 const char kNotConnected[] = "NotConnected";
159 } // namespace connection_state
161 namespace ethernet {
162 const char kAuthentication[] = "Authentication";
163 const char kAuthenticationNone[] = "None";
164 const char kEAP[] = "EAP";
165 const char k8021X[] = "8021X";
166 } // namespace ethernet
168 namespace ipconfig {
169 const char kGateway[] = "Gateway";
170 const char kIPAddress[] = "IPAddress";
171 const char kIPv4[] = "IPv4";
172 const char kIPv6[] = "IPv6";
173 const char kNameServers[] = "NameServers";
174 const char kRoutingPrefix[] = "RoutingPrefix";
175 const char kType[] = "Type";
176 const char kWebProxyAutoDiscoveryUrl[] = "WebProxyAutoDiscoveryUrl";
177 } // namespace ipconfig
179 namespace wifi {
180 const char kAutoConnect[] = "AutoConnect";
181 const char kBSSID[] = "BSSID";
182 const char kEAP[] = "EAP";
183 const char kFrequency[] = "Frequency";
184 const char kFrequencyList[] = "FrequencyList";
185 const char kHiddenSSID[] = "HiddenSSID";
186 const char kPassphrase[] = "Passphrase";
187 const char kSSID[] = "SSID";
188 const char kSecurity[] = "Security";
189 const char kSecurityNone[] = "None";
190 const char kSignalStrength[] = "SignalStrength";
191 const char kWEP_8021X[] = "WEP-8021X";
192 const char kWEP_PSK[] = "WEP-PSK";
193 const char kWPA_EAP[] = "WPA-EAP";
194 const char kWPA_PSK[] = "WPA-PSK";
195 const char kWPA2_PSK[] = "WPA2-PSK";
196 } // namespace wifi
198 namespace wimax {
199 const char kAutoConnect[] = "AutoConnect";
200 const char kEAP[] = "EAP";
201 const char kSignalStrength[] = "SignalStrength";
202 } // namespace wimax
204 namespace client_cert {
205 const char kClientCertPattern[] = "ClientCertPattern";
206 const char kClientCertRef[] = "ClientCertRef";
207 const char kClientCertType[] = "ClientCertType";
208 const char kClientCertTypeNone[] = "None";
209 const char kCommonName[] = "CommonName";
210 const char kEmailAddress[] = "EmailAddress";
211 const char kEnrollmentURI[] = "EnrollmentURI";
212 const char kIssuerCARef[] = "IssuerCARef";
213 const char kIssuerCAPEMs[] = "IssuerCAPEMs";
214 const char kIssuer[] = "Issuer";
215 const char kLocality[] = "Locality";
216 const char kOrganization[] = "Organization";
217 const char kOrganizationalUnit[] = "OrganizationalUnit";
218 const char kPattern[] = "Pattern";
219 const char kRef[] = "Ref";
220 const char kSubject[] = "Subject";
221 } // namespace client_cert
223 namespace certificate {
224 const char kAuthority[] = "Authority";
225 const char kClient[] = "Client";
226 const char kGUID[] = "GUID";
227 const char kPKCS12[] = "PKCS12";
228 const char kServer[] = "Server";
229 const char kTrustBits[] = "TrustBits";
230 const char kType[] = "Type";
231 const char kWeb[] = "Web";
232 const char kX509[] = "X509";
233 } // namespace certificate
235 namespace encrypted {
236 const char kAES256[] = "AES256";
237 const char kCipher[] = "Cipher";
238 const char kCiphertext[] = "Ciphertext";
239 const char kHMACMethod[] = "HMACMethod";
240 const char kHMAC[] = "HMAC";
241 const char kIV[] = "IV";
242 const char kIterations[] = "Iterations";
243 const char kPBKDF2[] = "PBKDF2";
244 const char kSHA1[] = "SHA1";
245 const char kSalt[] = "Salt";
246 const char kStretch[] = "Stretch";
247 } // namespace encrypted
249 namespace eap {
250 const char kAnonymousIdentity[] = "AnonymousIdentity";
251 const char kAutomatic[] = "Automatic";
252 const char kEAP_AKA[] = "EAP-AKA";
253 const char kEAP_FAST[] = "EAP-FAST";
254 const char kEAP_SIM[] = "EAP-SIM";
255 const char kEAP_TLS[] = "EAP-TLS";
256 const char kEAP_TTLS[] = "EAP-TTLS";
257 const char kIdentity[] = "Identity";
258 const char kInner[] = "Inner";
259 const char kLEAP[] = "LEAP";
260 const char kMD5[] = "MD5";
261 const char kMSCHAPv2[] = "MSCHAPv2";
262 const char kOuter[] = "Outer";
263 const char kPAP[] = "PAP";
264 const char kPEAP[] = "PEAP";
265 const char kPassword[] = "Password";
266 const char kSaveCredentials[] = "SaveCredentials";
267 const char kServerCAPEMs[] = "ServerCAPEMs";
268 const char kServerCARef[] = "ServerCARef";
269 const char kServerCARefs[] = "ServerCARefs";
270 const char kUseSystemCAs[] = "UseSystemCAs";
271 } // namespace eap
273 namespace vpn {
274 const char kAutoConnect[] = "AutoConnect";
275 const char kHost[] = "Host";
276 const char kIPsec[] = "IPsec";
277 const char kL2TP[] = "L2TP";
278 const char kOpenVPN[] = "OpenVPN";
279 const char kPassword[] = "Password";
280 const char kSaveCredentials[] = "SaveCredentials";
281 const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
282 const char kType[] = "Type";
283 const char kUsername[] = "Username";
284 } // namespace vpn
286 namespace ipsec {
287 const char kAuthenticationType[] = "AuthenticationType";
288 const char kCert[] = "Cert";
289 const char kEAP[] = "EAP";
290 const char kGroup[] = "Group";
291 const char kIKEVersion[] = "IKEVersion";
292 const char kPSK[] = "PSK";
293 const char kServerCAPEMs[] = "ServerCAPEMs";
294 const char kServerCARef[] = "ServerCARef";
295 const char kServerCARefs[] = "ServerCARefs";
296 const char kXAUTH[] = "XAUTH";
297 } // namespace ipsec
299 namespace openvpn {
300 const char kAuthNoCache[] = "AuthNoCache";
301 const char kAuthRetry[] = "AuthRetry";
302 const char kAuth[] = "Auth";
303 const char kCipher[] = "Cipher";
304 const char kCompLZO[] = "CompLZO";
305 const char kCompNoAdapt[] = "CompNoAdapt";
306 const char kIgnoreDefaultRoute[] = "IgnoreDefaultRoute";
307 const char kInteract[] = "interact";
308 const char kKeyDirection[] = "KeyDirection";
309 const char kNoInteract[] = "nointeract";
310 const char kNone[] = "none";
311 const char kNsCertType[] = "NsCertType";
312 const char kPort[] = "Port";
313 const char kProto[] = "Proto";
314 const char kPushPeerInfo[] = "PushPeerInfo";
315 const char kRemoteCertEKU[] = "RemoteCertEKU";
316 const char kRemoteCertKU[] = "RemoteCertKU";
317 const char kRemoteCertTLS[] = "RemoteCertTLS";
318 const char kRenegSec[] = "RenegSec";
319 const char kServerCAPEMs[] = "ServerCAPEMs";
320 const char kServerCARef[] = "ServerCARef";
321 const char kServerCARefs[] = "ServerCARefs";
322 const char kServerCertPEM[] = "ServerCertPEM";
323 const char kServerCertRef[] = "ServerCertRef";
324 const char kServerPollTimeout[] = "ServerPollTimeout";
325 const char kServer[] = "server";
326 const char kShaper[] = "Shaper";
327 const char kStaticChallenge[] = "StaticChallenge";
328 const char kTLSAuthContents[] = "TLSAuthContents";
329 const char kTLSRemote[] = "TLSRemote";
330 const char kVerb[] = "Verb";
331 const char kVerifyHash[] = "VerifyHash";
332 const char kVerifyX509[] = "VerifyX509";
333 } // namespace openvpn
335 namespace verify_x509 {
336 const char kName[] = "Name";
337 const char kType[] = "Type";
339 namespace types {
340 const char kName[] = "name";
341 const char kNamePrefix[] = "name-prefix";
342 const char kSubject[] = "subject";
343 } // namespace types
344 } // namespace verify_x509
346 namespace proxy {
347 const char kDirect[] = "Direct";
348 const char kExcludeDomains[] = "ExcludeDomains";
349 const char kFtp[] = "FTPProxy";
350 const char kHost[] = "Host";
351 const char kHttp[] = "HTTPProxy";
352 const char kHttps[] = "SecureHTTPProxy";
353 const char kManual[] = "Manual";
354 const char kPAC[] = "PAC";
355 const char kPort[] = "Port";
356 const char kSocks[] = "SOCKS";
357 const char kType[] = "Type";
358 const char kWPAD[] = "WPAD";
359 } // namespace proxy
361 namespace substitutes {
362 const char kLoginIDField[] = "${LOGIN_ID}";
363 const char kEmailField[] = "${LOGIN_EMAIL}";
364 } // namespace substitutes
366 namespace global_network_config {
367 const char kAllowOnlyPolicyNetworksToAutoconnect[] =
368 "AllowOnlyPolicyNetworksToAutoconnect";
369 } // global_network_config
371 } // namespace onc