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

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

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

Public Member Functions

 Initializer (string id)
 Constructs a new initializer using the given id. More...
 
 Initializer (string id, string tokenServerUrl)
 Constructs a new initializer using the given id and the token server URL. More...
 
Initializer FromPrivateKey (string privateKey)
 Extracts the Key from the given PKCS8 private key. More...
 
Initializer FromCertificate (X509Certificate2 certificate)
 Extracts a Key from the given certificate. More...
 
- Public Member Functions inherited from Google.Apis.Auth.OAuth2.ServiceCredential.Initializer
 Initializer (string tokenServerUrl)
 Constructs a new initializer using the given token server URL. More...
 

Properties

string Id [get, set]
 Gets the service account ID (typically an e-mail address). More...
 
string User [get, set]
 Gets or sets the email address of the user the application is trying to impersonate in the service account flow or null. More...
 
IEnumerable< string > Scopes [get, set]
 Gets the scopes which indicate API access your application is requesting. More...
 
RSACryptoServiceProvider Key [get, set]
 Gets or sets the key which is used to sign the request, as specified in https://developers.google.com/accounts/docs/OAuth2ServiceAccount#computingsignature. More...
 
- Properties inherited from Google.Apis.Auth.OAuth2.ServiceCredential.Initializer
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 account credential.

Constructor & Destructor Documentation

Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer.Initializer ( string  id)
inline

Constructs a new initializer using the given id.

Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer.Initializer ( string  id,
string  tokenServerUrl 
)
inline

Constructs a new initializer using the given id and the token server URL.

Member Function Documentation

Initializer Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer.FromCertificate ( X509Certificate2  certificate)
inline

Extracts a Key from the given certificate.

Initializer Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer.FromPrivateKey ( string  privateKey)
inline

Extracts the Key from the given PKCS8 private key.

Property Documentation

string Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer.Id
getset

Gets the service account ID (typically an e-mail address).

RSACryptoServiceProvider Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer.Key
getset

Gets or sets the key which is used to sign the request, as specified in https://developers.google.com/accounts/docs/OAuth2ServiceAccount#computingsignature.

IEnumerable<string> Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer.Scopes
getset

Gets the scopes which indicate API access your application is requesting.

string Google.Apis.Auth.OAuth2.ServiceAccountCredential.Initializer.User
getset

Gets or sets the email address of the user the application is trying to impersonate in the service account flow or null.


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