# Certificate Authority Service V1 API - Class Google::Cloud::Security::PrivateCA::V1::X509Parameters (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.1 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.6 Reference documentation and code samples for the Certificate Authority Service V1 API class Google::Cloud::Security::PrivateCA::V1::X509Parameters.

An [X509Parameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters "Google::Cloud::Security::PrivateCA::V1::X509Parameters (class)") 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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #additional_extensions

    def additional_extensions() -> ::Array<::Google::Cloud::Security::PrivateCA::V1::X509Extension>

**Returns**

- (::Array\<[::Google::Cloud::Security::PrivateCA::V1::X509Extension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Extension)\>) --- Optional. Describes custom X.509 extensions.

### #additional_extensions=

    def additional_extensions=(value) -> ::Array<::Google::Cloud::Security::PrivateCA::V1::X509Extension>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Security::PrivateCA::V1::X509Extension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Extension)\>) --- Optional. Describes custom X.509 extensions.
**Returns**

- (::Array\<[::Google::Cloud::Security::PrivateCA::V1::X509Extension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Extension)\>) --- Optional. Describes custom X.509 extensions.

### #aia_ocsp_servers

    def aia_ocsp_servers() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

### #aia_ocsp_servers=

    def aia_ocsp_servers=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
**Returns**

- (::Array\<::String\>) --- Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.

### #ca_options

    def ca_options() -> ::Google::Cloud::Security::PrivateCA::V1::X509Parameters::CaOptions

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters::CaOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters-CaOptions)) --- Optional. Describes options in this [X509Parameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters "Google::Cloud::Security::PrivateCA::V1::X509Parameters (class)") 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.

### #ca_options=

    def ca_options=(value) -> ::Google::Cloud::Security::PrivateCA::V1::X509Parameters::CaOptions

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters::CaOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters-CaOptions)) --- Optional. Describes options in this [X509Parameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters "Google::Cloud::Security::PrivateCA::V1::X509Parameters (class)") 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.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters::CaOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters-CaOptions)) --- Optional. Describes options in this [X509Parameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters "Google::Cloud::Security::PrivateCA::V1::X509Parameters (class)") 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.

### #key_usage

    def key_usage() -> ::Google::Cloud::Security::PrivateCA::V1::KeyUsage

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::KeyUsage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-KeyUsage)) --- Optional. Indicates the intended use for keys that correspond to a certificate.

### #key_usage=

    def key_usage=(value) -> ::Google::Cloud::Security::PrivateCA::V1::KeyUsage

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::KeyUsage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-KeyUsage)) --- Optional. Indicates the intended use for keys that correspond to a certificate.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::KeyUsage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-KeyUsage)) --- Optional. Indicates the intended use for keys that correspond to a certificate.

### #name_constraints

    def name_constraints() -> ::Google::Cloud::Security::PrivateCA::V1::X509Parameters::NameConstraints

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters::NameConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters-NameConstraints)) --- Optional. Describes the X.509 name constraints extension.

### #name_constraints=

    def name_constraints=(value) -> ::Google::Cloud::Security::PrivateCA::V1::X509Parameters::NameConstraints

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters::NameConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters-NameConstraints)) --- Optional. Describes the X.509 name constraints extension.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters::NameConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters-NameConstraints)) --- Optional. Describes the X.509 name constraints extension.

### #policy_ids

    def policy_ids() -> ::Array<::Google::Cloud::Security::PrivateCA::V1::ObjectId>

**Returns**

- (::Array\<[::Google::Cloud::Security::PrivateCA::V1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-ObjectId)\>) --- Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.

### #policy_ids=

    def policy_ids=(value) -> ::Array<::Google::Cloud::Security::PrivateCA::V1::ObjectId>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Security::PrivateCA::V1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-ObjectId)\>) --- Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
**Returns**

- (::Array\<[::Google::Cloud::Security::PrivateCA::V1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-ObjectId)\>) --- Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.