Class Password
- Namespace
- Cratis.Chronicle.Security
- Assembly
- Cratis.Chronicle.dll
Represents a password.
public record Password : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<Password>
- Inheritance
-
Password
- Implements
- Inherited Members
- Extension Methods
Constructors
Password(Password)
protected Password(Password original)
Parameters
originalPassword
Password(string)
Represents a password.
public Password(string Value)
Parameters
ValuestringThe actual value.
Fields
Empty
Gets the representation of an empty Password.
public static readonly Password Empty
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Value)
Parameters
Valuestring
Equals(Password?)
public virtual bool Equals(Password? other)
Parameters
otherPassword
Returns
Equals(ConceptAs<string>?)
public override sealed bool Equals(ConceptAs<string>? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
Operators
operator ==(Password?, Password?)
public static bool operator ==(Password? left, Password? right)
Parameters
Returns
implicit operator Password(string)
Implicitly convert from a string to Password.
public static implicit operator Password(string value)
Parameters
valuestringString to convert from.
Returns
operator !=(Password?, Password?)
public static bool operator !=(Password? left, Password? right)