Class SignedTokenVerificationOptions (1.55.0)

public sealed class SignedTokenVerificationOptions

Options to use when verifying signed JWTs.

Inheritance

Object > SignedTokenVerificationOptions

Namespace

Google.Apis.Auth

Assembly

Google.Apis.Auth.dll

Constructors

SignedTokenVerificationOptions()

public SignedTokenVerificationOptions()

Creates a new instance of SignedTokenVerificationOptions with default values for all options (or null for those whose default is unset).

SignedTokenVerificationOptions(SignedTokenVerificationOptions)

public SignedTokenVerificationOptions(SignedTokenVerificationOptions other)

Creates a new instance of SignedTokenVerificationOptions by copying over all the values from other.

Parameter
NameDescription
otherSignedTokenVerificationOptions

The option set to build this instance from.

Properties

CertificatesUrl

public string CertificatesUrl { get; set; }

The URL from where to obtain certificates from. May be null, in which case, default certificate locations will be used:

Property Value
TypeDescription
String

ExpiryClockTolerance

public TimeSpan ExpiryClockTolerance { 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. Internal to be used only for backward compatibility.

Property Value
TypeDescription
TimeSpan

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 zero. Internal to be used only for backward compatibility.

Property Value
TypeDescription
TimeSpan

TrustedAudiences

public IList<string> TrustedAudiences { get; }

Trusted audiences for the token. All the audiences the token is intended for should be in the trusted audiences list. If the list is empty, the token audience won't be verified.

Property Value
TypeDescription
IList<String>

TrustedIssuers

public IList<string> TrustedIssuers { get; }

List of trusted issuers to verify the token issuer against. The token issuer must be contained in this list. May be null, in which case the token issuer won't be verified.

Property Value
TypeDescription
IList<String>

Extension Method