SamlIdpInfo
in package
implements
JsonSerializable
The tenant's SAML IdP, as the administrator needs to see it before and while switching it on: what an SP will be given, and whether it answers yet.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $activeCredentialId : string|JsonNull|null
- $entityId : string
- $metadataServed : bool
- $metadataUrl : string
- $nextCredentialId : string|JsonNull|null
- $samlAvailable : bool
- $samlIdpEnabled : bool
- $sloUrl : string
- $ssoUrl : string
- $tenantId : string
Methods
- __construct() : mixed
- Constructs a SamlIdpInfo.
- fromArray() : self
- Rebuilds a SamlIdpInfo 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
$activeCredentialId read-only
public
string|JsonNull|null
$activeCredentialId
= null
$entityId read-only
public
string
$entityId
$metadataServed read-only
public
bool
$metadataServed
$metadataUrl read-only
public
string
$metadataUrl
$nextCredentialId read-only
public
string|JsonNull|null
$nextCredentialId
= null
$samlAvailable read-only
public
bool
$samlAvailable
$samlIdpEnabled read-only
public
bool
$samlIdpEnabled
$sloUrl read-only
public
string
$sloUrl
$ssoUrl read-only
public
string
$ssoUrl
$tenantId read-only
public
string
$tenantId
Methods
__construct()
Constructs a SamlIdpInfo.
public
__construct(string $entityId, bool $metadataServed, string $metadataUrl, bool $samlAvailable, bool $samlIdpEnabled, string $sloUrl, string $ssoUrl, string $tenantId[, string|JsonNull|null $activeCredentialId = null ][, string|JsonNull|null $nextCredentialId = null ]) : mixed
Parameters
- $entityId : string
-
The IdP's entity id (the metadata URL itself).
- $metadataServed : bool
-
Whether
metadata_urlanswers now: SAML is available, enabled for the tenant, and anactiveornextcredential exists (D-40). - $metadataUrl : string
-
Where the IdP metadata is served.
- $samlAvailable : bool
-
Whether this server build serves SAML at all (it was built with the
samlfeature). - $samlIdpEnabled : bool
-
The tenant's effective
saml_idp_enabledsetting (D-20). Written through thesettingsoperations, not here. - $sloUrl : string
-
The single-logout endpoint.
- $ssoUrl : string
-
The single-sign-on endpoint.
- $tenantId : string
-
The tenant.
- $activeCredentialId : string|JsonNull|null = null
-
The
activecredential, or null.nullleaves the member ABSENT; JsonNull::Null is an explicit JSONnull, which is not the same thing (§27.4 rule 5). (optional) - $nextCredentialId : string|JsonNull|null = null
-
The
nextcredential, or null.nullleaves the member ABSENT; JsonNull::Null is an explicit JSONnull, which is not the same thing (§27.4 rule 5). (optional)
fromArray()
Rebuilds a SamlIdpInfo 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.