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

Describes an Elliptic Curve 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.EcKeyType`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ signature_algorithm` | `int` Optional. A signature algorithm that must be used. If this is omitted, any EC-based signature algorithm will be allowed. |

### getSignatureAlgorithm

Optional. A signature algorithm that must be used. If this is
omitted, any EC-based signature algorithm will be allowed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EcSignatureAlgorithm](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm). |

### setSignatureAlgorithm

Optional. A signature algorithm that must be used. If this is
omitted, any EC-based signature algorithm will be allowed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [EcSignatureAlgorithm](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm). |

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