# Certificate Authority v1 API - Class SubjectAltNames (3.12.0)

3.12.0 (latest) 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

    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).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SubjectAltNames

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SubjectAltNames](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Security.PrivateCA.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1)

## Assembly

Google.Cloud.Security.PrivateCA.V1.dll

## Constructors

### SubjectAltNames()

    public SubjectAltNames()

### SubjectAltNames(SubjectAltNames)

    public SubjectAltNames(SubjectAltNames other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.SubjectAltNames` |

## Properties

### CustomSans

    public RepeatedField<X509Extension> CustomSans { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Extension` |   |

### DnsNames

    public RepeatedField<string> DnsNames { get; }

Contains only valid, fully-qualified host names.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### EmailAddresses

    public RepeatedField<string> EmailAddresses { get; }

Contains only valid RFC 2822 E-mail addresses.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### IpAddresses

    public RepeatedField<string> IpAddresses { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Uris

    public RepeatedField<string> Uris { get; }

Contains only valid RFC 3986 URIs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |