SubjectAltNameDns
in package
implements
SubjectAltNameVariant
FinalYes
The `dns` arm of {@see SubjectAltName} (`{"dns": …}`).
Table of Contents
Interfaces
- SubjectAltNameVariant
- A name to put in a `Server` certificate's `subjectAltName`. Stated explicitly in the request, never read from a CSR: a CSR asking for a `subjectAltName` extension is still refused. URI and e-mail names are not offered — nothing in AXIAM consumes them yet.
Properties
- $dns : string
Methods
- __construct() : mixed
- Constructs the `dns` arm.
- fromArray() : self
- Rebuilds the `dns` arm from one decoded JSON object.
- jsonSerialize() : array<string, mixed>
- Renders this object for `json_encode()`.
- toArray() : array<string, mixed>
- Renders this arm to its wire form: `{"dns": …}`. The key IS the discriminant -- there is no separate tag field to re-attach.
Properties
$dns read-only
public
string
$dns
Methods
__construct()
Constructs the `dns` arm.
public
__construct(string $dns) : mixed
Parameters
- $dns : string
-
A DNS name, e.g.
api.lakeside.internalor*.lakeside.internal.
fromArray()
Rebuilds the `dns` arm 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 arm to its wire form: `{"dns": …}`. The key IS the discriminant -- there is no separate tag field to re-attach.
public
toArray() : array<string, mixed>