Class GoogleJsonWebSignature.ValidationSettings
Settings used when validating a JSON Web Signature.
Inheritance
Inherited Members
Namespace: Google.Apis.Auth
Assembly: Google.Apis.Auth.dll
Syntax
public sealed class ValidationSettings
Constructors
ValidationSettings()
Create a new instance.
Declaration
public ValidationSettings()
Properties
Audience
The trusted audience client IDs; or null
to suppress audience validation.
Declaration
public IEnumerable<string> Audience { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Clock
Optional. The Google.Apis.Util.IClock to use for JWT expiration verification. Defaults to the system clock.
Declaration
public IClock Clock { get; set; }
Property Value
Type | Description |
---|---|
Google.Apis.Util.IClock |
ExpirationTimeClockTolerance
Clock tolerance for the expiration check. Causes a JWT to pass validation up to this duration after it really expired; this is to allow for possible local-client clock skew. Defaults to zero seconds.
Declaration
public TimeSpan ExpirationTimeClockTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
ForceGoogleCertRefresh
Optional. If true forces new certificates to be downloaded from Google. Defaults to false.
Declaration
public bool ForceGoogleCertRefresh { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
HostedDomain
The required GSuite domain of the user; or null
to suppress hosted domain validation.
Declaration
public string HostedDomain { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IssuedAtClockTolerance
Clock tolerance for the issued-at check. Causes a JWT to pass validation up to this duration before it is really valid; this is to allow for possible local-client clock skew. Defaults to 30 seconds.
Declaration
public TimeSpan IssuedAtClockTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |