# Google Certificate Authority Service V1 Client - Class AllowedKeyType (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 AllowedKeyType.

Describes a "type" of 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). Note that a single
[AllowedKeyType](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType)
may refer to either a fully-qualified key algorithm, such as RSA 4096, or
a family of key algorithms, such as any RSA key.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ rsa` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType` Represents an allowed RSA key type. |
| `↳ elliptic_curve` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType` Represents an allowed Elliptic Curve key type. |

### getRsa

Represents an allowed RSA key type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType|null` |   |

### hasRsa

### setRsa

Represents an allowed RSA key type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType` |

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

### getEllipticCurve

Represents an allowed Elliptic Curve key type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType|null` |   |

### hasEllipticCurve

### setEllipticCurve

Represents an allowed Elliptic Curve key type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType` |

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

### getKeyType

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