Class PasswordHashingAlgorithm
Represents an abstraction of password algorithm that performs hashing and verification of passwords supplied as SecureBuffer
Inheritance
System.Object
PasswordHashingAlgorithm
Implements
System.IDisposable
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)
Assembly: Azos.dll
Syntax
public abstract class PasswordHashingAlgorithm : DaemonWithInstrumentation<IPasswordManagerImplementation>, IDisposable, IDaemon, IDaemonView, IApplicationComponent, IConfigurable, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, INamed
Constructors
PasswordHashingAlgorithm(IPasswordManagerImplementation, String)
Declaration
protected PasswordHashingAlgorithm(IPasswordManagerImplementation director, string name)
Parameters
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
InstrumentationEnabled
Declaration
[Config(Default = false)]
[ExternalParameter(new string[]{"instrumentation", "pay"})]
public override bool InstrumentationEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Azos.Apps.DaemonWithInstrumentation<Azos.Security.IPasswordManagerImplementation>.InstrumentationEnabled
IsDefault
Declaration
public bool IsDefault { get; }
Property Value
Type |
Description |
System.Boolean |
|
StrengthLevel
Declaration
public PasswordStrengthLevel StrengthLevel { get; }
Property Value
Methods
AreEquivalent(HashedPassword, HashedPassword)
Declaration
public bool AreEquivalent(HashedPassword hash, HashedPassword rehash)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ComputeHash(PasswordFamily, SecureBuffer)
Declaration
public HashedPassword ComputeHash(PasswordFamily family, SecureBuffer password)
Parameters
Returns
DoAreEquivalent(HashedPassword, HashedPassword)
Declaration
protected abstract bool DoAreEquivalent(HashedPassword hash, HashedPassword rehash)
Parameters
Returns
Type |
Description |
System.Boolean |
|
DoComputeHash(PasswordFamily, SecureBuffer)
Declaration
protected abstract HashedPassword DoComputeHash(PasswordFamily family, SecureBuffer password)
Parameters
Returns
DoVerify(SecureBuffer, HashedPassword, out Boolean)
Declaration
protected abstract bool DoVerify(SecureBuffer password, HashedPassword hash, out bool needRehash)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Match(PasswordFamily)
Declaration
public virtual bool Match(PasswordFamily family)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Verify(SecureBuffer, HashedPassword, out Boolean)
Declaration
public bool Verify(SecureBuffer password, HashedPassword hash, out bool needRehash)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IDisposable
Extension Methods