1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_
8 #import <Foundation/Foundation.h>
10 // A single identity used for signing in.
11 // Identity is the equivalent of an account. A user may have multiple identities
12 // or accounts associated with a single device.
13 @interface ChromeIdentity
: NSObject
15 // Identity/account email address. This can be shown to the user, but is not a
16 // unique identifier (@see gaiaID).
17 @
property(nonatomic
, readonly
) NSString
* userEmail
;
19 // The unique GAIA user identifier for this identity/account.
20 // You may use this as a unique identifier to remember a particular identity.
21 @
property(nonatomic
, readonly
) NSString
* gaiaID
;
23 // Returns the full name of the identity.
24 // Could be nil if no full name has been fetched for this account yet.
25 @
property(nonatomic
, readonly
) NSString
* userFullName
;
27 // Cached Hashed Gaia ID. This is used to pass the currently signed in account
29 @
property(nonatomic
, readonly
) NSString
* hashedGaiaID
;
31 // Whether the ChromeIdentity object has been signed in.
32 @
property(nonatomic
, readonly
) BOOL isSignedIn
;
36 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_