Table of Contents

Token Constructor

Definition

Namespace
Codebelt.SharedKernel
Assemblies
Codebelt.SharedKernel.dll
Source
src/Codebelt.SharedKernel/Token.cs

Token(string, Action<TokenOptions>)

Initializes a new instance of the Token class.

public Token(string value, Action<TokenOptions> setup = null)

Parameters

value string

The string value to assign the role of Secret.

setup Action<TokenOptions>

The TokenOptions which may be configured.

Exceptions

ArgumentNullException

value cannot be null.

ArgumentException

value cannot be empty or consist only of white-space characters.

ArgumentOutOfRangeException

value contained one or more white-space characters -or- value was less than MinimumLength characters -or- value was greater than MaximumLength characters -or- value had a character frequency greater than MaximumCharacterFrequency.