Table of Contents

Secret Constructor

Definition

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

Secret(Guid)

Initializes a new instance of the Secret class.

public Secret(Guid value)

Parameters

value Guid

The Guid value to assign the role of Secret.

Secret(string)

Initializes a new instance of the Secret class.

public Secret(string value)

Parameters

value string

The string value to assign the role of Secret.

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 32 characters -or- value was greater than 128 characters -or- value consist only of same repeated character.