AXIAM PHP SDK

SubjectAltNameIp
in package
implements SubjectAltNameVariant

FinalYes

The `ip` arm of {@see SubjectAltName} (`{"ip": …}`).

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

$ip  : string

Methods

__construct()  : mixed
Constructs the `ip` arm.
fromArray()  : self
Rebuilds the `ip` 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: `{"ip": …}`. The key IS the discriminant -- there is no separate tag field to re-attach.

Properties

Methods

__construct()

Constructs the `ip` arm.

public __construct(string $ip) : mixed
Parameters
$ip : string

An IPv4 or IPv6 address, e.g. 10.0.0.5.

fromArray()

Rebuilds the `ip` 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
self

jsonSerialize()

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: `{"ip": …}`. The key IS the discriminant -- there is no separate tag field to re-attach.

public toArray() : array<string, mixed>
Return values
array<string, mixed>
On this page

Search results