Show / Hide Table of Contents

Class ImpersonatedCredential.Initializer

An initializer class for the impersonated credential.

Inheritance
System.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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public sealed class Initializer : ServiceCredential.Initializer

Constructors

Initializer(String)

Constructs a new initializer.

Declaration
public Initializer(string targetPrincipal)
Parameters
Type Name Description
System.String targetPrincipal

The principal that will be impersonated. Must not be null.

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
System.Collections.Generic.IEnumerable<System.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
System.TimeSpan

Scopes

Gets the scopes to request during the authorization grant. May be null or empty.

Declaration
public IEnumerable<string> Scopes { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

TargetPrincipal

Gets the service account to impersonate.

Declaration
public string TargetPrincipal { get; }
Property Value
Type Description
System.String
In This Article
Back to top