Show / Hide Table of Contents

Class ImpersonatedCredential.Initializer

An initializer class for the impersonated credential.

Inheritance
object
ServiceCredential.Initializer
ImpersonatedCredential.Initializer
Inherited Members
ServiceCredential.Initializer.TokenServerUrl
ServiceCredential.Initializer.Clock
ServiceCredential.Initializer.AccessMethod
ServiceCredential.Initializer.HttpClientFactory
ServiceCredential.Initializer.DefaultExponentialBackOffPolicy
ServiceCredential.Initializer.QuotaProject
ServiceCredential.Initializer.Scopes
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public sealed class ImpersonatedCredential.Initializer : ServiceCredential.Initializer

Constructors

Initializer(string)

Constructs a new initializer.

Declaration
public Initializer(string targetPrincipal)
Parameters
Type Name Description
string targetPrincipal

The principal that will be impersonated. Must not be null, as it will be used to build the URL to obtaing the impersonated access token from.

Properties

DelegateAccounts

Gets the chained list of delegate service accounts. May be null or empty.

Declaration
public IEnumerable<string> DelegateAccounts { get; set; }
Property Value
Type Description
IEnumerable<string>

Lifetime

Gets or sets for how long the delegated credential should be valid. Defaults to 1 hour or 3600 seconds.

Declaration
public TimeSpan Lifetime { get; set; }
Property Value
Type Description
TimeSpan

TargetPrincipal

Gets the service account to impersonate.

Declaration
public string TargetPrincipal { get; }
Property Value
Type Description
string
In this article
Back to top Generated by DocFX