# Google Certificate Authority Service V1 Client - Class RsaKeyType (2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.1 2.0.3 1.7.3 1.5.0 1.4.2 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google Certificate Authority Service V1 Client class RsaKeyType.

Describes an RSA key that may be used in a
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) issued
from a [CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).

Generated from protobuf message `google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1 \\ CaPool \\ IssuancePolicy \\ AllowedKeyType

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ min_modulus_size` | `int|string` Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service-level min RSA modulus size will continue to apply. |
| `↳ max_modulus_size` | `int|string` Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service will not enforce an explicit upper bound on RSA modulus sizes. |

### getMinModulusSize

Optional. The minimum allowed RSA modulus size (inclusive), in bits.

If this is not set, or if set to zero, the service-level min RSA
modulus size will continue to apply.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setMinModulusSize

Optional. The minimum allowed RSA modulus size (inclusive), in bits.

If this is not set, or if set to zero, the service-level min RSA
modulus size will continue to apply.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaxModulusSize

Optional. The maximum allowed RSA modulus size (inclusive), in bits.

If this is not set, or if set to zero, the service will not enforce
an explicit upper bound on RSA modulus sizes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setMaxModulusSize

Optional. The maximum allowed RSA modulus size (inclusive), in bits.

If this is not set, or if set to zero, the service will not enforce
an explicit upper bound on RSA modulus sizes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |