Table of Contents

Issue Method

Definition

Namespace
Codebelt.SharedKernel.Security
Assemblies
Codebelt.SharedKernel.dll
Source
src/Codebelt.SharedKernel/Security/AccessKey.cs

Issue(Secret, TimeToLive)

Issues a new instance of AccessKey with an optional lifespan.

public static AccessKey Issue(Secret secret, TimeToLive lifespan = null)

Parameters

secret Secret

The secret used to generate the access key.

lifespan TimeToLive

The lifespan of the AccessKey. If null, the access key will not expire.

Returns

AccessKey

Returns a new AccessKey> instance with the specified secret and lifespan.