Class HashedPassword
Represents abstraction of a hashed password, the concrete password algorithm provide implementation (i.e. bytebuffer, dictionary, string)
Inheritance
System.Object
HashedPassword
Implements
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Security
Assembly: Azos.dll
Syntax
[SlimSerializationProhibited]
public sealed class HashedPassword : IJSONWritable, IEnumerable<KeyValuePair<string, object>>, IEnumerable
Constructors
HashedPassword(String, PasswordFamily)
Declaration
public HashedPassword(string algoName, PasswordFamily family)
Parameters
Type | Name | Description |
---|---|---|
System.String | algoName | |
PasswordFamily | family |
Fields
KEY_ALGO
Declaration
public const string KEY_ALGO = "algo"
Field Value
Type | Description |
---|---|
System.String |
KEY_FAM
Declaration
public const string KEY_FAM = "fam"
Field Value
Type | Description |
---|---|
System.String |
Properties
AlgoName
Declaration
public string AlgoName { get; }
Property Value
Type | Description |
---|---|
System.String |
Family
Declaration
public PasswordFamily Family { get; }
Property Value
Type | Description |
---|---|
PasswordFamily |
Item[String]
Declaration
public object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Property Value
Type | Description |
---|---|
System.Object |
Methods
Add(String, Object)
Declaration
public void Add(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Object | value |
FromString(String)
Declaration
public static HashedPassword FromString(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str |
Returns
Type | Description |
---|---|
HashedPassword |
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.Object>> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
WriteAsJSON(TextWriter, Int32, JSONWritingOptions)
Declaration
public void WriteAsJSON(TextWriter wri, int nestingLevel, JSONWritingOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | wri | |
System.Int32 | nestingLevel | |
JSONWritingOptions | options |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable