Reference documentation and code samples for the Google Certificate Authority Service V1 Client class SubjectAltNames.
SubjectAltNamescorresponds 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 messagegoogle.cloud.security.privateca.v1.SubjectAltNames
Namespace
Google \ Cloud \ Security \ PrivateCA \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Certificate Authority Service V1 Client - Class SubjectAltNames (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames)\n- [2.1.0](/php/docs/reference/cloud-security-private-ca/2.1.0/V1.SubjectAltNames)\n- [2.0.3](/php/docs/reference/cloud-security-private-ca/2.0.3/V1.SubjectAltNames)\n- [1.7.3](/php/docs/reference/cloud-security-private-ca/1.7.3/V1.SubjectAltNames)\n- [1.5.0](/php/docs/reference/cloud-security-private-ca/1.5.0/V1.SubjectAltNames)\n- [1.4.2](/php/docs/reference/cloud-security-private-ca/1.4.2/V1.SubjectAltNames)\n- [1.3.1](/php/docs/reference/cloud-security-private-ca/1.3.1/V1.SubjectAltNames)\n- [1.2.2](/php/docs/reference/cloud-security-private-ca/1.2.2/V1.SubjectAltNames)\n- [1.1.0](/php/docs/reference/cloud-security-private-ca/1.1.0/V1.SubjectAltNames)\n- [1.0.3](/php/docs/reference/cloud-security-private-ca/1.0.3/V1.SubjectAltNames) \nReference documentation and code samples for the Google Certificate Authority Service V1 Client class SubjectAltNames.\n\n[SubjectAltNames](/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames)\ncorresponds to a more modern way of listing what the asserted identity is in\na certificate (i.e., compared to the \"common name\" in the distinguished\nname).\n\nGenerated from protobuf message `google.cloud.security.privateca.v1.SubjectAltNames`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Security \\\\ PrivateCA \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDnsNames\n\nContains only valid, fully-qualified host names.\n\n### setDnsNames\n\nContains only valid, fully-qualified host names.\n\n### getUris\n\nContains only valid RFC 3986 URIs.\n\n### setUris\n\nContains only valid RFC 3986 URIs.\n\n### getEmailAddresses\n\nContains only valid RFC 2822 E-mail addresses.\n\n### setEmailAddresses\n\nContains only valid RFC 2822 E-mail addresses.\n\n### getIpAddresses\n\nContains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.\n\n### setIpAddresses\n\nContains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.\n\n### getCustomSans\n\nContains additional subject alternative name values.\n\nFor each custom_san, the `value` field must contain an ASN.1 encoded\nUTF8String.\n\n### setCustomSans\n\nContains additional subject alternative name values.\n\nFor each custom_san, the `value` field must contain an ASN.1 encoded\nUTF8String."]]