chromium/third_party/cros_system_api/dbus/cryptohome/dbus-constants.h

// Copyright 2015 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_CRYPTOHOME_DBUS_CONSTANTS_H_
#define SYSTEM_API_DBUS_CRYPTOHOME_DBUS_CONSTANTS_H_

namespace user_data_auth {

// Interface exposed by the cryptohome daemon.
inline constexpr char kUserDataAuthServiceName[] =;
inline constexpr char kUserDataAuthServicePath[] =;

inline constexpr char kUserDataAuthInterface[] =;
inline constexpr char kCryptohomePkcs11Interface[] =;
inline constexpr char kInstallAttributesInterface[] =;
inline constexpr char kCryptohomeMiscInterface[] =;

// 5 minutes timeout for all cryptohome calls.
// This is a bit on the long side, but we want to be cautious.
inline constexpr int kUserDataAuthServiceTimeoutInMs =;

// Methods of the |kUserDataAuthInterface| interface:
inline constexpr char kIsMounted[] =;
inline constexpr char kGetVaultProperties[] =;
inline constexpr char kUnmount[] =;
inline constexpr char kRemove[] =;
inline constexpr char kGetWebAuthnSecret[] =;
inline constexpr char kGetRecoverableKeyStores[] =;
inline constexpr char kStartMigrateToDircrypto[] =;
inline constexpr char kNeedsDircryptoMigration[] =;
inline constexpr char kGetSupportedKeyPolicies[] =;
inline constexpr char kGetAccountDiskUsage[] =;
inline constexpr char kStartAuthSession[] =;
inline constexpr char kInvalidateAuthSession[] =;
inline constexpr char kExtendAuthSession[] =;
inline constexpr char kCreatePersistentUser[] =;
inline constexpr char kPrepareGuestVault[] =;
inline constexpr char kPrepareEphemeralVault[] =;
inline constexpr char kPreparePersistentVault[] =;
inline constexpr char kPrepareVaultForMigration[] =;
inline constexpr char kPrepareAuthFactor[] =;
inline constexpr char kTerminateAuthFactor[] =;
inline constexpr char kAddAuthFactor[] =;
inline constexpr char kAuthenticateAuthFactor[] =;
inline constexpr char kUpdateAuthFactor[] =;
inline constexpr char kUpdateAuthFactorMetadata[] =;
inline constexpr char kRelabelAuthFactor[] =;
inline constexpr char kReplaceAuthFactor[] =;
inline constexpr char kRemoveAuthFactor[] =;
inline constexpr char kListAuthFactors[] =;
inline constexpr char kGetAuthFactorExtendedInfo[] =;
inline constexpr char kGetAuthSessionStatus[] =;
inline constexpr char kLockFactorUntilReboot[] =;
inline constexpr char kModifyAuthFactorIntents[] =;
inline constexpr char kCreateVaultkeyset[] =;
inline constexpr char kGetArcDiskFeatures[] =;
inline constexpr char kMigrateLegacyFingerprints[] =;
inline constexpr char kSetUserDataStorageWriteEnabled[] =;

// Methods of the |kCryptohomePkcs11Interface| interface:
inline constexpr char kPkcs11IsTpmTokenReady[] =;
inline constexpr char kPkcs11GetTpmTokenInfo[] =;
inline constexpr char kPkcs11Terminate[] =;
inline constexpr char kPkcs11RestoreTpmTokens[] =;

// Methods of the |kInstallAttributesInterface| interface:
inline constexpr char kInstallAttributesGet[] =;
inline constexpr char kInstallAttributesSet[] =;
inline constexpr char kInstallAttributesFinalize[] =;
inline constexpr char kInstallAttributesGetStatus[] =;
inline constexpr char kGetFirmwareManagementParameters[] =;
inline constexpr char kRemoveFirmwareManagementParameters[] =;
inline constexpr char kSetFirmwareManagementParameters[] =;

// Methods of the |kCryptohomeMiscInterface| interface:
inline constexpr char kGetSystemSalt[] =;
inline constexpr char kUpdateCurrentUserActivityTimestamp[] =;
inline constexpr char kGetSanitizedUsername[] =;
inline constexpr char kGetLoginStatus[] =;
inline constexpr char kLockToSingleUserMountUntilReboot[] =;
inline constexpr char kGetRsuDeviceId[] =;
inline constexpr char kGetPinWeaverInfo[] =;

// Signals of the |kUserDataAuthInterface| interface:
inline constexpr char kDircryptoMigrationProgress[] =;
inline constexpr char kAuthFactorStatusUpdate[] =;
inline constexpr char kLowDiskSpace[] =;
inline constexpr char kAuthEnrollmentProgressSignal[] =;
inline constexpr char kPrepareAuthFactorProgressSignal[] =;
inline constexpr char kAuthenticateStartedSignal[] =;
inline constexpr char kAuthenticateAuthFactorCompletedSignal[] =;
inline constexpr char kMountStartedSignal[] =;
inline constexpr char kMountCompletedSignal[] =;
inline constexpr char kEvictedKeyRestoredSignal[] =;
inline constexpr char kAuthFactorAddedl[] =;
inline constexpr char kAuthFactorRemoved[] =;
inline constexpr char kAuthFactorUpdted[] =;
inline constexpr char kAuthSessionExpiring[] =;
inline constexpr char kRemoveCompleted[] =;

}  // namespace user_data_auth

namespace cryptohome {

// Error code
enum MountError {};
// Status code signaled from MigrateToDircrypto().
enum DircryptoMigrationStatus {};

// Interface for key delegate service to be used by the cryptohome daemon.

inline constexpr char kCryptohomeKeyDelegateInterface[] =;

// Methods of the |kCryptohomeKeyDelegateInterface| interface:
inline constexpr char kCryptohomeKeyDelegateChallengeKey[] =;

}  // namespace cryptohome

#endif  // SYSTEM_API_DBUS_CRYPTOHOME_DBUS_CONSTANTS_H_