Show / Hide Table of Contents

Class TokenCacheHelper

Defines the token cache helper, which provides disk-based caching of access tokens (across multiple executions).

Inheritance
System.Object
TokenCacheHelper
Namespace: DNVGL.One.Compute.Platform.Client.Extensions
Assembly: DNVGL.One.Compute.Platform.Client.Extensions.dll
Syntax
public static class TokenCacheHelper : object

Methods

View Source

Bind(ITokenCache, IDataProtector, String, String)

Binds methods to decrypt/encrypt and serialize access token with token cache.

Declaration
public static void Bind(ITokenCache tokenCache, IDataProtector dataProtector, string localPath, string applicationScope)
Parameters
Type Name Description
ITokenCache tokenCache

The token cache.

IDataProtector dataProtector

The "data protector", used for encrypting and decrypting cashed tokens.

System.String localPath

The path to the token cache directory.

System.String applicationScope

Name of the app. scope required to differentiate various cashed tokens.

  • View Source
In This Article
Back to top Copyright © DNV AS. All rights reserved.