History

public struct History : Codable, Sendable

A struct representing the password policy history. Conforms to Codable for JSON encoding/decoding.

  • The number of recent passwords to keep in history to disallow reuse.

    Declaration

    Swift

    public let count: Int
  • The retention period (in days) for password history entries.

    Declaration

    Swift

    public let retentionDays: Int
  • Initializes a new History instance.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.