blob: 5875d9e839a4c7b79eaf3338e06a91f3eaaa7610 [file] [log] [blame]
// Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Credentials is the interface for objects that wrap up a set
// of credentials with which we can authenticate or mount.
#include "secure_blob.h"
namespace cryptohome {
class Credentials {
Credentials() {}
virtual ~Credentials() {}
// Returns the full user name as a std::string
// Parameters
virtual std::string GetFullUsernameString() const = 0;
// Returns the obfuscated username, used as the name of the directory
// containing the user's stateful data (and maybe used for other reasons
// at some point.)
virtual std::string GetObfuscatedUsername(
const chromeos::Blob &system_salt) const = 0;
// Returns a the user's passkey
// Parameters
// passkey - A SecureBlob containing the passkey
virtual void GetPasskey(SecureBlob* passkey) const = 0;
} // namespace cryptohome