| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 // Asynchronously finishes an attestation enrollment operation. The callback | 244 // Asynchronously finishes an attestation enrollment operation. The callback |
| 245 // will be called when the dbus call completes. When the operation completes, | 245 // will be called when the dbus call completes. When the operation completes, |
| 246 // the AsyncCallStatusHandler signal handler is called. |pca_response| is the | 246 // the AsyncCallStatusHandler signal handler is called. |pca_response| is the |
| 247 // response to the enrollment request emitted by the Privacy CA. | 247 // response to the enrollment request emitted by the Privacy CA. |
| 248 virtual void AsyncTpmAttestationEnroll( | 248 virtual void AsyncTpmAttestationEnroll( |
| 249 const std::string& pca_response, | 249 const std::string& pca_response, |
| 250 const AsyncMethodCallback& callback) = 0; | 250 const AsyncMethodCallback& callback) = 0; |
| 251 | 251 |
| 252 // Asynchronously creates an attestation certificate request according to | 252 // Asynchronously creates an attestation certificate request according to |
| 253 // |options|, which is a combination of AttestationCertificateOptions. | 253 // |certificate_profile|. Some profiles require that the |user_email| of the |
| 254 // |callback| will be called when the dbus call completes. When the operation | 254 // currently active user and an identifier of the |request_origin| be |
| 255 // completes, the AsyncCallStatusWithDataHandler signal handler is called. | 255 // provided. |callback| will be called when the dbus call completes. When |
| 256 // The data that is sent with the signal is a certificate request to be sent | 256 // the operation completes, the AsyncCallStatusWithDataHandler signal handler |
| 257 // to the Privacy CA. The certificate request is completed by calling | 257 // is called. The data that is sent with the signal is a certificate request |
| 258 // AsyncTpmAttestationFinishCertRequest. | 258 // to be sent to the Privacy CA. The certificate request is completed by |
| 259 // calling AsyncTpmAttestationFinishCertRequest. The |user_email| will not |
| 260 // be included in the certificate request for the Privacy CA. |
| 259 virtual void AsyncTpmAttestationCreateCertRequest( | 261 virtual void AsyncTpmAttestationCreateCertRequest( |
| 260 int options, | 262 attestation::AttestationCertificateProfile certificate_profile, |
| 263 const std::string& user_email, |
| 264 const std::string& request_origin, |
| 261 const AsyncMethodCallback& callback) = 0; | 265 const AsyncMethodCallback& callback) = 0; |
| 262 | 266 |
| 263 // Asynchronously finishes a certificate request operation. The callback will | 267 // Asynchronously finishes a certificate request operation. The callback will |
| 264 // be called when the dbus call completes. When the operation completes, the | 268 // be called when the dbus call completes. When the operation completes, the |
| 265 // AsyncCallStatusWithDataHandler signal handler is called. The data that is | 269 // AsyncCallStatusWithDataHandler signal handler is called. The data that is |
| 266 // sent with the signal is a certificate chain in PEM format. |pca_response| | 270 // sent with the signal is a certificate chain in PEM format. |pca_response| |
| 267 // is the response to the certificate request emitted by the Privacy CA. | 271 // is the response to the certificate request emitted by the Privacy CA. |
| 268 // |key_type| determines whether the certified key is to be associated with | 272 // |key_type| determines whether the certified key is to be associated with |
| 269 // the current user. |key_name| is a name for the key. | 273 // the current user. |key_name| is a name for the key. |
| 270 virtual void AsyncTpmAttestationFinishCertRequest( | 274 virtual void AsyncTpmAttestationFinishCertRequest( |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // Create() should be used instead. | 361 // Create() should be used instead. |
| 358 CryptohomeClient(); | 362 CryptohomeClient(); |
| 359 | 363 |
| 360 private: | 364 private: |
| 361 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 365 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
| 362 }; | 366 }; |
| 363 | 367 |
| 364 } // namespace chromeos | 368 } // namespace chromeos |
| 365 | 369 |
| 366 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 370 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |