Google APIs Client Library for C++
|
Creates a CredentialStore. More...
#include "client/auth/credential_store.h"
Public Member Functions | |
CredentialStoreFactory () | |
Standard constructor. | |
virtual | ~CredentialStoreFactory () |
Standard destructor. | |
void | set_codec_factory (CodecFactory *codec_factory) |
Sets a factory for creating the codec to assign to new instances. | |
CodecFactory * | codec_factory () const |
Returns the codec_factory for this factory. | |
virtual CredentialStore * | NewCredentialStore (const string &client_id, util::Status *status) const =0 |
Creates a new CredentialStore instance. |
Creates a CredentialStore.
Implements a Factory Pattern to create a credential store. This is used to inject a credential store where lazy initialization might be required.
CredentialStore class instances are scoped to an individual client_id.
Standard constructor.
virtual ~CredentialStoreFactory | ( | ) | [virtual] |
Standard destructor.
CodecFactory* codec_factory | ( | ) | const [inline] |
Returns the codec_factory for this factory.
virtual CredentialStore* NewCredentialStore | ( | const string & | client_id, |
util::Status * | status | ||
) | const [pure virtual] |
Creates a new CredentialStore instance.
[in] | client_id | The client ID to scope the store to. |
[out] | status | The reason for failrue if NULL is returned. |
Implemented in FileCredentialStoreFactory.
void set_codec_factory | ( | CodecFactory * | codec_factory | ) |
Sets a factory for creating the codec to assign to new instances.
codec_factory | NULL means do not set a codec on new instances. otherwise the factory is used to create new codec instances to bind to new store instances created by this factory. |