public sealed class SubjectAltNames : IMessage<SubjectAltNames>, IEquatable<SubjectAltNames>, IDeepCloneable<SubjectAltNames>, IBufferMessage, IMessage
Reference documentation and code samples for the Certificate Authority v1 API class SubjectAltNames.
[SubjectAltNames][google.cloud.security.privateca.v1.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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eSubjectAltNames\u003c/code\u003e API class is 3.9.0, part of the Google Cloud Security Private CA v1 API, with several older versions available as well.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSubjectAltNames\u003c/code\u003e is a class used in certificate identity assertion, offering a more modern approach compared to the traditional "common name" method, and it implements multiple interfaces for message handling, cloning, and equality checks.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for defining alternative subject names in certificates, including DNS names, email addresses, IP addresses, URIs, and custom SANs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSubjectAltNames\u003c/code\u003e class provides properties to manage lists of DNS names, email addresses, IP addresses, URIs, and custom alternative subject names.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the SubjectAltNames class, a default one with no parameters, and one that accepts another SubjectAltNames instance.\u003c/p\u003e\n"]]],[],null,["# Certificate Authority v1 API - Class SubjectAltNames (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.9.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.8.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.7.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.6.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.5.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.4.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.3.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.2.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.1.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.0.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.3.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.2.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.1.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.0.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/1.0.0/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames) \n\n public sealed class SubjectAltNames : IMessage\u003cSubjectAltNames\u003e, IEquatable\u003cSubjectAltNames\u003e, IDeepCloneable\u003cSubjectAltNames\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Certificate Authority v1 API class SubjectAltNames.\n\n\\[SubjectAltNames\\]\\[google.cloud.security.privateca.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\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SubjectAltNames \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SubjectAltNames](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SubjectAltNames](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SubjectAltNames](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Security.PrivateCA.V1](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Security.PrivateCA.V1.dll\n\nConstructors\n------------\n\n### SubjectAltNames()\n\n public SubjectAltNames()\n\n### SubjectAltNames(SubjectAltNames)\n\n public SubjectAltNames(SubjectAltNames other)\n\nProperties\n----------\n\n### CustomSans\n\n public RepeatedField\u003cX509Extension\u003e CustomSans { get; }\n\nContains additional subject alternative name values.\nFor each custom_san, the `value` field must contain an ASN.1 encoded\nUTF8String.\n\n### DnsNames\n\n public RepeatedField\u003cstring\u003e DnsNames { get; }\n\nContains only valid, fully-qualified host names.\n\n### EmailAddresses\n\n public RepeatedField\u003cstring\u003e EmailAddresses { get; }\n\nContains only valid RFC 2822 E-mail addresses.\n\n### IpAddresses\n\n public RepeatedField\u003cstring\u003e IpAddresses { get; }\n\nContains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.\n\n### Uris\n\n public RepeatedField\u003cstring\u003e Uris { get; }\n\nContains only valid RFC 3986 URIs."]]