SetOrgSettings
in package
implements
JsonSerializable
Input for setting organization-level security settings.
This is a REPLACEMENT body (§27.4 rule 5): every field is required, so omitting one is a constructor error rather than a silent erasure server-side.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $accessTokenLifetimeSecs : int
- $adminNotificationsEnabled : bool
- $defaultCertValidityDays : int
- $deletionGracePeriodDays : int|null
- $emailVerificationGracePeriodHours : int
- $emailVerificationRequired : bool
- $hibpCheckEnabled : bool
- $lockoutBackoffMultiplier : float
- $lockoutDurationSecs : int
- $maxCertValidityDays : int
- $maxFailedLoginAttempts : int
- $maxLockoutDurationSecs : int
- $mfaChallengeLifetimeSecs : int
- $mfaEnforced : bool
- $minLength : int
- $opaqueKsf : string|null
- $opaqueMode : string|null
- $opaqueSuite : string|null
- $passwordHistoryCount : int
- $refreshTokenLifetimeSecs : int
- $requireDigits : bool
- $requireLowercase : bool
- $requireSymbols : bool
- $requireUppercase : bool
- $webauthnUserVerification : string|null
Methods
- __construct() : mixed
- Constructs a SetOrgSettings.
- fromArray() : self
- Rebuilds a SetOrgSettings from one decoded JSON object.
- jsonSerialize() : array<string, mixed>
- Renders this object for `json_encode()`.
- toArray() : array<string, mixed>
- Renders this object back to its wire form.
Properties
$accessTokenLifetimeSecs read-only
public
int
$accessTokenLifetimeSecs
$adminNotificationsEnabled read-only
public
bool
$adminNotificationsEnabled
$defaultCertValidityDays read-only
public
int
$defaultCertValidityDays
$deletionGracePeriodDays read-only
public
int|null
$deletionGracePeriodDays
= null
$emailVerificationGracePeriodHours read-only
public
int
$emailVerificationGracePeriodHours
$emailVerificationRequired read-only
public
bool
$emailVerificationRequired
$hibpCheckEnabled read-only
public
bool
$hibpCheckEnabled
$lockoutBackoffMultiplier read-only
public
float
$lockoutBackoffMultiplier
$lockoutDurationSecs read-only
public
int
$lockoutDurationSecs
$maxCertValidityDays read-only
public
int
$maxCertValidityDays
$maxFailedLoginAttempts read-only
public
int
$maxFailedLoginAttempts
$maxLockoutDurationSecs read-only
public
int
$maxLockoutDurationSecs
$mfaChallengeLifetimeSecs read-only
public
int
$mfaChallengeLifetimeSecs
$mfaEnforced read-only
public
bool
$mfaEnforced
$minLength read-only
public
int
$minLength
$opaqueKsf read-only
public
string|null
$opaqueKsf
= null
$opaqueMode read-only
public
string|null
$opaqueMode
= null
$opaqueSuite read-only
public
string|null
$opaqueSuite
= null
$passwordHistoryCount read-only
public
int
$passwordHistoryCount
$refreshTokenLifetimeSecs read-only
public
int
$refreshTokenLifetimeSecs
$requireDigits read-only
public
bool
$requireDigits
$requireLowercase read-only
public
bool
$requireLowercase
$requireSymbols read-only
public
bool
$requireSymbols
$requireUppercase read-only
public
bool
$requireUppercase
$webauthnUserVerification read-only
public
string|null
$webauthnUserVerification
= null
Methods
__construct()
Constructs a SetOrgSettings.
public
__construct(int $accessTokenLifetimeSecs, bool $adminNotificationsEnabled, int $defaultCertValidityDays, int $emailVerificationGracePeriodHours, bool $emailVerificationRequired, bool $hibpCheckEnabled, float $lockoutBackoffMultiplier, int $lockoutDurationSecs, int $maxCertValidityDays, int $maxFailedLoginAttempts, int $maxLockoutDurationSecs, int $mfaChallengeLifetimeSecs, bool $mfaEnforced, int $minLength, int $passwordHistoryCount, int $refreshTokenLifetimeSecs, bool $requireDigits, bool $requireLowercase, bool $requireSymbols, bool $requireUppercase[, int|null $deletionGracePeriodDays = null ][, string|null $opaqueKsf = null ][, string|null $opaqueMode = null ][, string|null $opaqueSuite = null ][, string|null $webauthnUserVerification = null ]) : mixed
Parameters
- $accessTokenLifetimeSecs : int
-
the server's
access_token_lifetime_secsfield - $adminNotificationsEnabled : bool
-
the server's
admin_notifications_enabledfield - $defaultCertValidityDays : int
-
the server's
default_cert_validity_daysfield - $emailVerificationGracePeriodHours : int
-
the server's
email_verification_grace_period_hoursfield - $emailVerificationRequired : bool
-
the server's
email_verification_requiredfield - $hibpCheckEnabled : bool
-
the server's
hibp_check_enabledfield - $lockoutBackoffMultiplier : float
-
the server's
lockout_backoff_multiplierfield - $lockoutDurationSecs : int
-
the server's
lockout_duration_secsfield - $maxCertValidityDays : int
-
the server's
max_cert_validity_daysfield - $maxFailedLoginAttempts : int
-
the server's
max_failed_login_attemptsfield - $maxLockoutDurationSecs : int
-
the server's
max_lockout_duration_secsfield - $mfaChallengeLifetimeSecs : int
-
the server's
mfa_challenge_lifetime_secsfield - $mfaEnforced : bool
-
the server's
mfa_enforcedfield - $minLength : int
-
the server's
min_lengthfield - $passwordHistoryCount : int
-
the server's
password_history_countfield - $refreshTokenLifetimeSecs : int
-
the server's
refresh_token_lifetime_secsfield - $requireDigits : bool
-
the server's
require_digitsfield - $requireLowercase : bool
-
the server's
require_lowercasefield - $requireSymbols : bool
-
the server's
require_symbolsfield - $requireUppercase : bool
-
the server's
require_uppercasefield - $deletionGracePeriodDays : int|null = null
-
the server's
deletion_grace_period_daysfield (optional) - $opaqueKsf : string|null = null
-
the server's
opaque_ksffield (optional) - $opaqueMode : string|null = null
-
the server's
opaque_modefield (optional) - $opaqueSuite : string|null = null
-
the server's
opaque_suitefield (optional) - $webauthnUserVerification : string|null = null
-
the server's
webauthn_user_verificationfield (optional)
fromArray()
Rebuilds a SetOrgSettings from one decoded JSON object.
public
static fromArray(array<string, mixed> $data) : self
Parameters
- $data : array<string, mixed>
-
The raw wire object.
Return values
selfjsonSerialize()
Renders this object for `json_encode()`.
public
jsonSerialize() : array<string, mixed>
Any Sensitive it carries stays WRAPPED here, so a log line or a
json_encode($model) in application code prints [SENSITIVE]. The one place a secret
is revealed is ManagementTransport, on the way to the wire
and nowhere else (§27.5).
Return values
array<string, mixed>toArray()
Renders this object back to its wire form.
public
toArray() : array<string, mixed>
§27.4 rule 5: a null property is OMITTED, not emitted as null. On a sparse update those two say opposite things — "leave this alone" versus "set this to nothing" — and only omission means the first.