Class JsonWebSignature

public class JsonWebSignature : object

JSON Web Signature (JWS) implementation as specified in http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11.

Inheritance

Object > JsonWebSignature

Namespace

Google.Apis.Auth

Assembly

Google.Apis.Auth.dll

Methods

VerifySignedTokenAsync(String, SignedTokenVerificationOptions, CancellationToken)

public static Task<JsonWebSignature.Payload> VerifySignedTokenAsync(string signedJwt, SignedTokenVerificationOptions options = null, CancellationToken cancellationToken = null)

Verifies that the given token is a valid, not expired, signed token.

Parameters
TypeNameDescription
StringsignedJwt

The token to verify.

SignedTokenVerificationOptionsoptions

The options to use for verification. May be null in which case default options will be used.

CancellationTokencancellationToken

The cancellation token for the operation.

Returns
TypeDescription
Task<JsonWebSignature.Payload>

The payload contained by the token.

Exceptions
TypeCondition
InvalidJwtException

If the token is invalid or expired.

Extension Method