Class GoogleJsonWebSignature.ValidationSettings

public sealed class ValidationSettings : object

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
TypeDescription
IEnumerable<String>

Clock

public IClock Clock { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
TimeSpan

ForceGoogleCertRefresh

public bool ForceGoogleCertRefresh { get; set; }

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

Property Value
TypeDescription
Boolean

HostedDomain

public string HostedDomain { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
TimeSpan

Extension Method