Show / Hide Table of Contents

Interface IVapidTokenCache

Represents cache for VapidAuthentication tokens.

Namespace: Lib.Net.Http.WebPush.Authentication
Assembly: Lib.Net.Http.WebPush.dll
Syntax
public interface IVapidTokenCache

Methods

Get(String)

Gets token from cache.

Declaration
string Get(string audience)
Parameters
Type Name Description
System.String audience

The origin of the push resource (cache key).

Returns
Type Description
System.String

The cached token or null if token was not present in cache.

Put(String, DateTimeOffset, String)

Puts token into cache.

Declaration
void Put(string audience, DateTimeOffset expiration, string token)
Parameters
Type Name Description
System.String audience

The origin of the push resource (cache key).

System.DateTimeOffset expiration

The token expiration.

System.String token

The token.

Back to top Copyright © 2018 - 2024 Tomasz Pęczek