1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
// Copyright 2017 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYSTEM_API_DBUS_BIOD_DBUS_CONSTANTS_H_
#define SYSTEM_API_DBUS_BIOD_DBUS_CONSTANTS_H_
namespace biod {
const char kBiodServicePath[] = "/org/chromium/BiometricsDaemon";
const char kBiodServiceName[] = "org.chromium.BiometricsDaemon";
// Interfaces for objects exported by biod
const char kBiometricsManagerInterface[] =
"org.chromium.BiometricsDaemon.BiometricsManager";
const char kAuthSessionInterface[] =
"org.chromium.BiometricsDaemon.AuthSession";
const char kEnrollSessionInterface[] =
"org.chromium.BiometricsDaemon.EnrollSession";
const char kRecordInterface[] = "org.chromium.BiometricsDaemon.Record";
const char kAuthStackManagerInterface[] =
"org.chromium.BiometricsDaemon.AuthStackManager";
// List of all BiometricsManagers
const char kCrosFpBiometricsManagerName[] = "CrosFpBiometricsManager";
// List of all AuthStackManagers
const char kCrosFpAuthStackManagerName[] = "CrosFpAuthStackManager";
// Methods
const char kBiometricsManagerStartEnrollSessionMethod[] = "StartEnrollSession";
const char kBiometricsManagerGetRecordsForUserMethod[] = "GetRecordsForUser";
const char kBiometricsManagerDestroyAllRecordsMethod[] = "DestroyAllRecords";
const char kBiometricsManagerStartAuthSessionMethod[] = "StartAuthSession";
const char kAuthSessionEndMethod[] = "End";
const char kEnrollSessionCancelMethod[] = "Cancel";
const char kRecordRemoveMethod[] = "Remove";
const char kRecordSetLabelMethod[] = "SetLabel";
const char kAuthStackManagerGetNonceMethod[] = "GetNonce";
const char kAuthStackManagerStartEnrollSessionMethod[] = "StartEnrollSession";
const char kAuthStackManagerStartAuthSessionMethod[] = "StartAuthSession";
const char kAuthStackManagerCreateCredentialMethod[] = "CreateCredential";
const char kAuthStackManagerAuthenticateCredentialMethod[] =
"AuthenticateCredential";
const char kAuthStackManagerDeleteCredentialMethod[] = "DeleteCredential";
const char kAuthStackManagerEnrollLegacyTemplateMethod[] =
"EnrollLegacyTemplate";
const char kAuthStackManagerListLegacyRecordsMethod[] = "ListLegacyRecords";
// Signals
const char kBiometricsManagerEnrollScanDoneSignal[] = "EnrollScanDone";
const char kBiometricsManagerAuthScanDoneSignal[] = "AuthScanDone";
const char kBiometricsManagerSessionFailedSignal[] = "SessionFailed";
const char kBiometricsManagerStatusChangedSignal[] = "StatusChanged";
// Properties
const char kBiometricsManagerBiometricTypeProperty[] = "Type";
const char kRecordLabelProperty[] = "Label";
// Values
enum BiometricType {
BIOMETRIC_TYPE_UNKNOWN = 0,
BIOMETRIC_TYPE_FINGERPRINT = 1,
BIOMETRIC_TYPE_MAX,
};
// Enroll and Auth Session Errors
const char kDomain[] = "biod";
const char kInternalError[] = "Internal error";
const char kInvalidArguments[] = "Invalid Arguments";
const char kEnrollSessionExists[] = "Another EnrollSession already exists";
const char kAuthSessionExists[] = "Another AuthSession already exists";
const char kTemplatesFull[] = "No space for an additional template";
const char kEnrollImageNotRequested[] = "Enroll image was not requested";
const char kFpHwUnavailable[] = "Fingerprint hardware is unavailable";
const char kMatchNotRequested[] = "Match was not requested";
} // namespace biod
#endif // SYSTEM_API_DBUS_BIOD_DBUS_CONSTANTS_H_
|