OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 package enterprise_management; | 9 package enterprise_management; |
10 | 10 |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 // device-determined device state keys. | 592 // device-determined device state keys. |
593 message DeviceStateKeyUpdateRequest { | 593 message DeviceStateKeyUpdateRequest { |
594 // The client-determined state keys. To the server, these look like 32 bytes | 594 // The client-determined state keys. To the server, these look like 32 bytes |
595 // of random data. The client should generate these keys using a deterministic | 595 // of random data. The client should generate these keys using a deterministic |
596 // algorithm that takes stable device identifiers as an input and produces a | 596 // algorithm that takes stable device identifiers as an input and produces a |
597 // key as the output, possibly by running the identifiers through a | 597 // key as the output, possibly by running the identifiers through a |
598 // cryptographic hash function such as SHA-256. | 598 // cryptographic hash function such as SHA-256. |
599 repeated bytes server_backed_state_key = 1; | 599 repeated bytes server_backed_state_key = 1; |
600 } | 600 } |
601 | 601 |
| 602 message DisabledState { |
| 603 // A message to the finder/thief that should be shown on the screen. |
| 604 optional string message = 1; |
| 605 } |
| 606 |
602 // Server to client message carrying the device state response. Because the | 607 // Server to client message carrying the device state response. Because the |
603 // request is not authenticated, the only protection against state extraction | 608 // request is not authenticated, the only protection against state extraction |
604 // from server is the unpredictability of the server-backed state ID. Thus, the | 609 // from server is the unpredictability of the server-backed state ID. Thus, the |
605 // response should not contain any sensitive data. If the server doesn't know | 610 // response should not contain any sensitive data. If the server doesn't know |
606 // the requested identifier, it just return a message with restore_mode set to | 611 // the requested identifier, it just return a message with restore_mode set to |
607 // RESTORE_MODE_NONE. | 612 // RESTORE_MODE_NONE. |
608 message DeviceStateRetrievalResponse { | 613 message DeviceStateRetrievalResponse { |
609 // Restorative action to take after device reset. | 614 // Restorative action to take after device reset. |
610 enum RestoreMode { | 615 enum RestoreMode { |
611 // No state restoration. | 616 // No state restoration. |
612 RESTORE_MODE_NONE = 0; | 617 RESTORE_MODE_NONE = 0; |
613 // Enterprise enrollment requested, but user may skip. | 618 // Enterprise enrollment requested, but user may skip. |
614 RESTORE_MODE_REENROLLMENT_REQUESTED = 1; | 619 RESTORE_MODE_REENROLLMENT_REQUESTED = 1; |
615 // Enterprise enrollment is enforced and cannot be skipped. | 620 // Enterprise enrollment is enforced and cannot be skipped. |
616 RESTORE_MODE_REENROLLMENT_ENFORCED = 2; | 621 RESTORE_MODE_REENROLLMENT_ENFORCED = 2; |
617 }; | 622 }; |
618 // The server-indicated restore mode. | 623 // The server-indicated restore mode. |
619 optional RestoreMode restore_mode = 1 [default = RESTORE_MODE_NONE]; | 624 optional RestoreMode restore_mode = 1 [default = RESTORE_MODE_NONE]; |
620 | 625 |
621 // Primary domain the device is associated with. | 626 // Primary domain the device is associated with. |
622 optional string management_domain = 2; | 627 optional string management_domain = 2; |
| 628 |
| 629 // The device is disabled and no logins are possible when this is set. |
| 630 optional DisabledState disabled_state = 3; |
623 } | 631 } |
624 | 632 |
625 // Sent by the client to the server to pair the Host device with the Controller | 633 // Sent by the client to the server to pair the Host device with the Controller |
626 // device. The HTTP request contains an end-user OAuth token and only succeeds | 634 // device. The HTTP request contains an end-user OAuth token and only succeeds |
627 // if both Host and Controller devices belong to the end-user domain. | 635 // if both Host and Controller devices belong to the end-user domain. |
628 message DevicePairingRequest { | 636 message DevicePairingRequest { |
629 | 637 |
630 // The device ID of the Host device. | 638 // The device ID of the Host device. |
631 optional string host_device_id = 1; | 639 optional string host_device_id = 1; |
632 | 640 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 | 847 |
840 // Device-state retrieval. | 848 // Device-state retrieval. |
841 optional DeviceStateRetrievalResponse device_state_retrieval_response = 11; | 849 optional DeviceStateRetrievalResponse device_state_retrieval_response = 11; |
842 | 850 |
843 // Response to device pairing request. | 851 // Response to device pairing request. |
844 optional DevicePairingResponse device_pairing_response = 12; | 852 optional DevicePairingResponse device_pairing_response = 12; |
845 | 853 |
846 // Response to check device pairing request. | 854 // Response to check device pairing request. |
847 optional CheckDevicePairingResponse check_device_pairing_response = 13; | 855 optional CheckDevicePairingResponse check_device_pairing_response = 13; |
848 } | 856 } |
OLD | NEW |