Class GoogleJsonWebSignature.ValidationSettings (1.68.0)

public sealed class GoogleJsonWebSignature.ValidationSettings

Settings used when validating a JSON Web Signature.

Inheritance

object > GoogleJsonWebSignature.ValidationSettings

Namespace

Google.Apis.Auth

Assembly

Google.Apis.Auth.dll

Constructors

ValidationSettings()

public ValidationSettings()

Create a new instance.

Properties

Audience

public IEnumerable<string> Audience { get; set; }

The trusted audience client IDs; or null to suppress audience validation.

Property Value
Type Description
IEnumerablestring

Clock

public IClock Clock { get; set; }

Optional. The IClock to use for JWT expiration verification. Defaults to the system clock.

Property Value
Type Description
IClock

ExpirationTimeClockTolerance

public TimeSpan ExpirationTimeClockTolerance { get; set; }

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.

Property Value
Type Description
TimeSpan

ForceGoogleCertRefresh

public bool ForceGoogleCertRefresh { get; set; }

Optional. If true forces new certificates to be downloaded from Google. Defaults to false.

Property Value
Type Description
bool

HostedDomain

public string HostedDomain { get; set; }

The required GSuite domain of the user; or null to suppress hosted domain validation.

Property Value
Type Description
string

IssuedAtClockTolerance

public TimeSpan IssuedAtClockTolerance { get; set; }

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.

Property Value
Type Description
TimeSpan

Extension Method