Class ImpersonatedCredential.Initializer
An initializer class for the impersonated credential.
Inherited Members
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 |