1.2.4 (latest) 1.2.3 1.1.1 1.0.4 0.11.5 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.1 0.4.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Dataproc Metastore V1beta Client class KerberosConfig.

Configuration information for a Kerberos principal.

Generated from protobuf message `google.cloud.metastore.v1beta.KerberosConfig`

## Namespace

Google \\ Cloud \\ Metastore \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ keytab` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1beta.Secret` A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC). |
| `↳ principal` | `string` A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form `primary/instance\@REALM`, but there is no exact format. |
| `↳ krb5_config_gcs_uri` | `string` A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, although the file does not need to be named krb5.conf explicitly. |

### getKeytab

A Kerberos keytab file that can be used to authenticate a service principal
with a Kerberos Key Distribution Center (KDC).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1beta.Secret|null` |   |

### hasKeytab

### clearKeytab

### setKeytab

A Kerberos keytab file that can be used to authenticate a service principal
with a Kerberos Key Distribution Center (KDC).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1beta.Secret` |

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

### getPrincipal

A Kerberos principal that exists in the both the keytab the KDC
to authenticate as. A typical principal is of the form
`primary/instance\@REALM`, but there is no exact format.

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

### setPrincipal

A Kerberos principal that exists in the both the keytab the KDC
to authenticate as. A typical principal is of the form
`primary/instance\@REALM`, but there is no exact format.

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

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

### getKrb5ConfigGcsUri

A Cloud Storage URI that specifies the path to a
krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`,
although the file does not need to be named krb5.conf explicitly.

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

### setKrb5ConfigGcsUri

A Cloud Storage URI that specifies the path to a
krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`,
although the file does not need to be named krb5.conf explicitly.

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

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