Table of Contents

Class SaltAttribute

Namespace
Ubiety.Scram.Core.Attributes
Assembly
Ubiety.Scram.Core.dll

Represents the SCRAM attribute for the salt used in authentication procedures.

public class SaltAttribute : ScramAttribute<byte[]>
Inheritance
SaltAttribute
Inherited Members

Remarks

The SaltAttribute is a specialized SCRAM attribute that holds the salt value, which can be provided as either a byte array or a Base64-encoded string.

Constructors

SaltAttribute(byte[])

Initializes a new instance of the SaltAttribute class.

public SaltAttribute(byte[] value)

Parameters

value byte[]

Byte array value of the salt.

SaltAttribute(string)

Initializes a new instance of the SaltAttribute class.

public SaltAttribute(string value)

Parameters

value string

String value of the salt.

Methods

ToString()

Converts the attribute to its string representation.

public override string ToString()

Returns

string

The string representation of the attribute, including its name and value.