# Certificate Authority v1 API - Class X509Parameters (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 X509Parameters : IMessage<X509Parameters>, IEquatable<X509Parameters>, IDeepCloneable<X509Parameters>, IBufferMessage, IMessage

Reference documentation and code samples for the Certificate Authority v1 API class X509Parameters.

An \[X509Parameters\]\[google.cloud.security.privateca.v1.X509Parameters\] is
used to describe certain fields of an X.509 certificate, such as the key
usage fields, fields specific to CA certificates, certificate policy
extensions and custom extensions.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[X509Parameters](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parameters), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[X509Parameters](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parameters), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[X509Parameters](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parameters), [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

### X509Parameters()

    public X509Parameters()

### X509Parameters(X509Parameters)

    public X509Parameters(X509Parameters other)

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

## Properties

### AdditionalExtensions

    public RepeatedField<X509Extension> AdditionalExtensions { get; }

Optional. Describes custom X.509 extensions.

| **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` |   |

### AiaOcspServers

    public RepeatedField<string> AiaOcspServers { get; }

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint
addresses that appear in the "Authority Information Access" extension in
the certificate.

| **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` |   |

### CaOptions

    public X509Parameters.Types.CaOptions CaOptions { get; set; }

Optional. Describes options in this
\[X509Parameters\]\[google.cloud.security.privateca.v1.X509Parameters\] that
are relevant in a CA certificate. If not specified, a default basic
constraints extension with `is_ca=false` will be added for leaf
certificates.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parametershttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parameters.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.CaOptions` |   |

### KeyUsage

    public KeyUsage KeyUsage { get; set; }

Optional. Indicates the intended use for keys that correspond to a
certificate.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.KeyUsage` |   |

### NameConstraints

    public X509Parameters.Types.NameConstraints NameConstraints { get; set; }

Optional. Describes the X.509 name constraints extension.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parametershttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parameters.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.NameConstraints` |   |

### PolicyIds

    public RepeatedField<ObjectId> PolicyIds { get; }

Optional. Describes the X.509 certificate policy object identifiers, per
<https://tools.ietf.org/html/rfc5280#section-4.2.1.4>.

| **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.ObjectId` |   |