Class Secret
- Namespace
- Duende.IdentityServer.Models
- Assembly
- Duende.IdentityServer.Storage.dll
Models a client secret with identifier and expiration
public class Secret
- Inheritance
-
Secret
- Inherited Members
Constructors
Secret()
Initializes a new instance of the Secret class.
public Secret()
Secret(string, DateTime?)
Initializes a new instance of the Secret class.
public Secret(string value, DateTime? expiration = null)
Parameters
Secret(string, string, DateTime?)
Initializes a new instance of the Secret class.
public Secret(string value, string description, DateTime? expiration = null)
Parameters
Properties
Description
Gets or sets the description.
public string? Description { get; set; }
Property Value
- string
The description.
Expiration
Gets or sets the expiration.
public DateTime? Expiration { get; set; }
Property Value
- DateTime?
The expiration.
Type
Gets or sets the type of the client secret.
public string Type { get; set; }
Property Value
- string
The type of the client secret.
Value
Gets or sets the value.
public string Value { get; set; }
Property Value
- string
The value.
Methods
Equals(object?)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.