oauth2  v2
Public Member Functions | Static Public Member Functions | List of all members
google_oauth2_api::Tokeninfo Class Reference

#include <tokeninfo.h>

Inheritance diagram for google_oauth2_api::Tokeninfo:

Public Member Functions

 Tokeninfo (const Json::Value &storage)
 
 Tokeninfo (Json::Value *storage)
 
virtual ~Tokeninfo ()
 
const StringPiece GetTypeName () const
 
bool has_audience () const
 
void clear_audience ()
 
const StringPiece get_audience () const
 
void set_audience (const StringPiece &value)
 
bool has_email () const
 
void clear_email ()
 
const StringPiece get_email () const
 
void set_email (const StringPiece &value)
 
bool has_expires_in () const
 
void clear_expires_in ()
 
int32 get_expires_in () const
 
void set_expires_in (int32 value)
 
bool has_issued_to () const
 
void clear_issued_to ()
 
const StringPiece get_issued_to () const
 
void set_issued_to (const StringPiece &value)
 
bool has_scope () const
 
void clear_scope ()
 
const StringPiece get_scope () const
 
void set_scope (const StringPiece &value)
 
bool has_user_id () const
 
void clear_user_id ()
 
const StringPiece get_user_id () const
 
void set_user_id (const StringPiece &value)
 
bool has_verified_email () const
 
void clear_verified_email ()
 
bool get_verified_email () const
 
void set_verified_email (bool value)
 

Static Public Member Functions

static TokeninfoNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ Tokeninfo() [1/2]

google_oauth2_api::Tokeninfo::Tokeninfo ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe 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]storageThe underlying data storage for this instance.

◆ ~Tokeninfo()

google_oauth2_api::Tokeninfo::~Tokeninfo ( )
virtual

Standard destructor.

Member Function Documentation

◆ 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

Returns a string denoting the type of this data object.

Returns
google_oauth2_api::Tokeninfo

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

The documentation for this class was generated from the following files: