Google API Client Library for .NET  1.10.0
Public Member Functions | Properties | List of all members
Google.Apis.Auth.OAuth2.ServiceCredential.Initializer Class Reference

An initializer class for the service credential. More...

Inheritance diagram for Google.Apis.Auth.OAuth2.ServiceCredential.Initializer:
Google.Apis.Auth.OAuth2.ComputeCredential.Initializer Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer

Public Member Functions

 Initializer (string tokenServerUrl)
 Constructs a new initializer using the given token server URL. More...
 

Properties

string TokenServerUrl [get, set]
 Gets the token server URL. More...
 
IClock Clock [get, set]
 Gets or sets the clock used to refresh the token when it expires. The default value is Google.Apis.Util.SystemClock.Default. More...
 
IAccessMethod AccessMethod [get, set]
 Gets or sets the method for presenting the access token to the resource server. The default value is BearerToken.AuthorizationHeaderAccessMethod. More...
 
IHttpClientFactory HttpClientFactory [get, set]
 Gets or sets the factory for creating a System.Net.Http.HttpClient instance. More...
 
ExponentialBackOffPolicy DefaultExponentialBackOffPolicy [get, set]
 Get or sets the exponential back-off policy. Default value is UnsuccessfulResponse503, which means that exponential back-off is used on 503 abnormal HTTP responses. If the value is set to None, no exponential back-off policy is used, and it's up to the user to configure the Google.Apis.Http.ConfigurableMessageHandler in an Google.Apis.Http.IConfigurableHttpClientInitializer to set a specific back-off implementation (using Google.Apis.Http.BackOffHandler). More...
 

Detailed Description

An initializer class for the service credential.

Constructor & Destructor Documentation

Google.Apis.Auth.OAuth2.ServiceCredential.Initializer.Initializer ( string  tokenServerUrl)
inline

Constructs a new initializer using the given token server URL.

Property Documentation

IAccessMethod Google.Apis.Auth.OAuth2.ServiceCredential.Initializer.AccessMethod
getset

Gets or sets the method for presenting the access token to the resource server. The default value is BearerToken.AuthorizationHeaderAccessMethod.

IClock Google.Apis.Auth.OAuth2.ServiceCredential.Initializer.Clock
getset

Gets or sets the clock used to refresh the token when it expires. The default value is Google.Apis.Util.SystemClock.Default.

ExponentialBackOffPolicy Google.Apis.Auth.OAuth2.ServiceCredential.Initializer.DefaultExponentialBackOffPolicy
getset

Get or sets the exponential back-off policy. Default value is UnsuccessfulResponse503, which means that exponential back-off is used on 503 abnormal HTTP responses. If the value is set to None, no exponential back-off policy is used, and it's up to the user to configure the Google.Apis.Http.ConfigurableMessageHandler in an Google.Apis.Http.IConfigurableHttpClientInitializer to set a specific back-off implementation (using Google.Apis.Http.BackOffHandler).

IHttpClientFactory Google.Apis.Auth.OAuth2.ServiceCredential.Initializer.HttpClientFactory
getset

Gets or sets the factory for creating a System.Net.Http.HttpClient instance.

string Google.Apis.Auth.OAuth2.ServiceCredential.Initializer.TokenServerUrl
getset

Gets the token server URL.


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