Google Certificate Authority Service V1 Client - Class SubjectAltNames (1.5.0)

Reference documentation and code samples for the Google Certificate Authority Service V1 Client class SubjectAltNames.

SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name).

Generated from protobuf message google.cloud.security.privateca.v1.SubjectAltNames

Namespace

Google \ Cloud \ Security \ PrivateCA \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ dns_names array

Contains only valid, fully-qualified host names.

↳ uris array

Contains only valid RFC 3986 URIs.

↳ email_addresses array

Contains only valid RFC 2822 E-mail addresses.

↳ ip_addresses array

Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.

↳ custom_sans array<Google\Cloud\Security\PrivateCA\V1\X509Extension>

Contains additional subject alternative name values. For each custom_san, the value field must contain an ASN.1 encoded UTF8String.

getDnsNames

Contains only valid, fully-qualified host names.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDnsNames

Contains only valid, fully-qualified host names.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getUris

Contains only valid RFC 3986 URIs.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setUris

Contains only valid RFC 3986 URIs.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getEmailAddresses

Contains only valid RFC 2822 E-mail addresses.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setEmailAddresses

Contains only valid RFC 2822 E-mail addresses.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getIpAddresses

Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIpAddresses

Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getCustomSans

Contains additional subject alternative name values.

For each custom_san, the value field must contain an ASN.1 encoded UTF8String.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCustomSans

Contains additional subject alternative name values.

For each custom_san, the value field must contain an ASN.1 encoded UTF8String.

Parameter
NameDescription
var array<Google\Cloud\Security\PrivateCA\V1\X509Extension>
Returns
TypeDescription
$this