#include <tokeninfo.h>
◆ Tokeninfo() [1/2]
google_oauth2_api::Tokeninfo::Tokeninfo |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ Tokeninfo() [2/2]
google_oauth2_api::Tokeninfo::Tokeninfo |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~Tokeninfo()
google_oauth2_api::Tokeninfo::~Tokeninfo |
( |
| ) |
|
|
virtual |
◆ clear_audience()
void google_oauth2_api::Tokeninfo::clear_audience |
( |
| ) |
|
|
inline |
Clears the 'audience
' attribute.
◆ clear_email()
void google_oauth2_api::Tokeninfo::clear_email |
( |
| ) |
|
|
inline |
Clears the 'email
' attribute.
◆ clear_expires_in()
void google_oauth2_api::Tokeninfo::clear_expires_in |
( |
| ) |
|
|
inline |
Clears the 'expires_in
' attribute.
◆ clear_issued_to()
void google_oauth2_api::Tokeninfo::clear_issued_to |
( |
| ) |
|
|
inline |
Clears the 'issued_to
' attribute.
◆ clear_scope()
void google_oauth2_api::Tokeninfo::clear_scope |
( |
| ) |
|
|
inline |
Clears the 'scope
' attribute.
◆ clear_user_id()
void google_oauth2_api::Tokeninfo::clear_user_id |
( |
| ) |
|
|
inline |
Clears the 'user_id
' attribute.
◆ clear_verified_email()
void google_oauth2_api::Tokeninfo::clear_verified_email |
( |
| ) |
|
|
inline |
Clears the 'verified_email
' attribute.
◆ get_audience()
const StringPiece google_oauth2_api::Tokeninfo::get_audience |
( |
| ) |
const |
|
inline |
Get the value of the 'audience
' attribute.
◆ get_email()
const StringPiece google_oauth2_api::Tokeninfo::get_email |
( |
| ) |
const |
|
inline |
Get the value of the 'email
' attribute.
◆ get_expires_in()
int32 google_oauth2_api::Tokeninfo::get_expires_in |
( |
| ) |
const |
|
inline |
Get the value of the 'expires_in
' attribute.
◆ get_issued_to()
const StringPiece google_oauth2_api::Tokeninfo::get_issued_to |
( |
| ) |
const |
|
inline |
Get the value of the 'issued_to
' attribute.
◆ get_scope()
const StringPiece google_oauth2_api::Tokeninfo::get_scope |
( |
| ) |
const |
|
inline |
Get the value of the 'scope
' attribute.
◆ get_user_id()
const StringPiece google_oauth2_api::Tokeninfo::get_user_id |
( |
| ) |
const |
|
inline |
Get the value of the 'user_id
' attribute.
◆ get_verified_email()
bool google_oauth2_api::Tokeninfo::get_verified_email |
( |
| ) |
const |
|
inline |
Get the value of the 'verified_email
' attribute.
◆ GetTypeName()
const StringPiece google_oauth2_api::Tokeninfo::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_audience()
bool google_oauth2_api::Tokeninfo::has_audience |
( |
| ) |
const |
|
inline |
Determine if the 'audience
' attribute was set.
- Returns
- true if the '
audience
' attribute was set.
◆ has_email()
bool google_oauth2_api::Tokeninfo::has_email |
( |
| ) |
const |
|
inline |
Determine if the 'email
' attribute was set.
- Returns
- true if the '
email
' attribute was set.
◆ has_expires_in()
bool google_oauth2_api::Tokeninfo::has_expires_in |
( |
| ) |
const |
|
inline |
Determine if the 'expires_in
' attribute was set.
- Returns
- true if the '
expires_in
' attribute was set.
◆ has_issued_to()
bool google_oauth2_api::Tokeninfo::has_issued_to |
( |
| ) |
const |
|
inline |
Determine if the 'issued_to
' attribute was set.
- Returns
- true if the '
issued_to
' attribute was set.
◆ has_scope()
bool google_oauth2_api::Tokeninfo::has_scope |
( |
| ) |
const |
|
inline |
Determine if the 'scope
' attribute was set.
- Returns
- true if the '
scope
' attribute was set.
◆ has_user_id()
bool google_oauth2_api::Tokeninfo::has_user_id |
( |
| ) |
const |
|
inline |
Determine if the 'user_id
' attribute was set.
- Returns
- true if the '
user_id
' attribute was set.
◆ has_verified_email()
bool google_oauth2_api::Tokeninfo::has_verified_email |
( |
| ) |
const |
|
inline |
Determine if the 'verified_email
' attribute was set.
- Returns
- true if the '
verified_email
' attribute was set.
◆ New()
Tokeninfo * google_oauth2_api::Tokeninfo::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_audience()
void google_oauth2_api::Tokeninfo::set_audience |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'audience
' attribute.
Who is the intended audience for this token. In general the same as issued_to.
- Parameters
-
◆ set_email()
void google_oauth2_api::Tokeninfo::set_email |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'email
' attribute.
The email address of the user. Present only if the email scope is present in the request.
- Parameters
-
◆ set_expires_in()
void google_oauth2_api::Tokeninfo::set_expires_in |
( |
int32 |
value | ) |
|
|
inline |
Change the 'expires_in
' attribute.
The expiry time of the token, as number of seconds left until expiry.
- Parameters
-
◆ set_issued_to()
void google_oauth2_api::Tokeninfo::set_issued_to |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'issued_to
' attribute.
To whom was the token issued to. In general the same as audience.
- Parameters
-
◆ set_scope()
void google_oauth2_api::Tokeninfo::set_scope |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'scope
' attribute.
The space separated list of scopes granted to this token.
- Parameters
-
◆ set_user_id()
void google_oauth2_api::Tokeninfo::set_user_id |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'user_id
' attribute.
The obfuscated user id.
- Parameters
-
◆ set_verified_email()
void google_oauth2_api::Tokeninfo::set_verified_email |
( |
bool |
value | ) |
|
|
inline |
Change the 'verified_email
' attribute.
Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.
- Parameters
-
The documentation for this class was generated from the following files:
- google/oauth2_api/tokeninfo.h
- google/oauth2_api/tokeninfo.cc