# Google Cloud Dataproc V1 Client - Class KerberosConfig (3.14.0)

3.14.0 (latest) 3.13.4 3.12.0 3.11.0 3.10.1 3.9.0 3.8.1 3.7.1 3.6.1 3.5.1 3.4.0 3.3.0 3.2.2 2.12.0 2.11.0 2.10.0 2.9.1 2.8.2 2.7.0 2.6.1 2.5.0 2.3.0 2.2.3 2.1.0 2.0.0 Reference documentation and code samples for the Google Cloud Dataproc V1 Client class KerberosConfig.

Specifies Kerberos related configuration.

Generated from protobuf message `google.cloud.dataproc.v1.KerberosConfig`

## Namespace

Google \\ Cloud \\ Dataproc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enable_kerberos` | `bool` Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster. |
| `↳ root_principal_password_uri` | `string` Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password. |
| `↳ kms_key_uri` | `string` Optional. The uri of the KMS key used to encrypt various sensitive files. |
| `↳ keystore_uri` | `string` Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. |
| `↳ truststore_uri` | `string` Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. |
| `↳ keystore_password_uri` | `string` Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc. |
| `↳ key_password_uri` | `string` Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc. |
| `↳ truststore_password_uri` | `string` Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc. |
| `↳ cross_realm_trust_realm` | `string` Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. |
| `↳ cross_realm_trust_kdc` | `string` Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. |
| `↳ cross_realm_trust_admin_server` | `string` Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. |
| `↳ cross_realm_trust_shared_password_uri` | `string` Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship. |
| `↳ kdc_db_key_uri` | `string` Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. |
| `↳ tgt_lifetime_hours` | `int` Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used. |
| `↳ realm` | `string` Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm. |

### getEnableKerberos

Optional. Flag to indicate whether to Kerberize the cluster (default:
false). Set this field to true to enable Kerberos on a cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableKerberos

Optional. Flag to indicate whether to Kerberize the cluster (default:
false). Set this field to true to enable Kerberos on a cluster.

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

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

### getRootPrincipalPasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the root
principal password.

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

### setRootPrincipalPasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the root
principal password.

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

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

### getKmsKeyUri

Optional. The uri of the KMS key used to encrypt various sensitive
files.

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

### setKmsKeyUri

Optional. The uri of the KMS key used to encrypt various sensitive
files.

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

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

### getKeystoreUri

Optional. The Cloud Storage URI of the keystore file used for SSL
encryption. If not provided, Dataproc will provide a self-signed
certificate.

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

### setKeystoreUri

Optional. The Cloud Storage URI of the keystore file used for SSL
encryption. If not provided, Dataproc will provide a self-signed
certificate.

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

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

### getTruststoreUri

Optional. The Cloud Storage URI of the truststore file used for SSL
encryption. If not provided, Dataproc will provide a self-signed
certificate.

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

### setTruststoreUri

Optional. The Cloud Storage URI of the truststore file used for SSL
encryption. If not provided, Dataproc will provide a self-signed
certificate.

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

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

### getKeystorePasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
password to the user provided keystore. For the self-signed certificate,
this password is generated by Dataproc.

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

### setKeystorePasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
password to the user provided keystore. For the self-signed certificate,
this password is generated by Dataproc.

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

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

### getKeyPasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
password to the user provided key. For the self-signed certificate, this
password is generated by Dataproc.

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

### setKeyPasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
password to the user provided key. For the self-signed certificate, this
password is generated by Dataproc.

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

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

### getTruststorePasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
password to the user provided truststore. For the self-signed certificate,
this password is generated by Dataproc.

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

### setTruststorePasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
password to the user provided truststore. For the self-signed certificate,
this password is generated by Dataproc.

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

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

### getCrossRealmTrustRealm

Optional. The remote realm the Dataproc on-cluster KDC will trust, should
the user enable cross realm trust.

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

### setCrossRealmTrustRealm

Optional. The remote realm the Dataproc on-cluster KDC will trust, should
the user enable cross realm trust.

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

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

### getCrossRealmTrustKdc

Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
realm trust relationship.

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

### setCrossRealmTrustKdc

Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
realm trust relationship.

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

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

### getCrossRealmTrustAdminServer

Optional. The admin server (IP or hostname) for the remote trusted realm in
a cross realm trust relationship.

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

### setCrossRealmTrustAdminServer

Optional. The admin server (IP or hostname) for the remote trusted realm in
a cross realm trust relationship.

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

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

### getCrossRealmTrustSharedPasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
shared password between the on-cluster Kerberos realm and the remote
trusted realm, in a cross realm trust relationship.

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

### setCrossRealmTrustSharedPasswordUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
shared password between the on-cluster Kerberos realm and the remote
trusted realm, in a cross realm trust relationship.

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

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

### getKdcDbKeyUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
master key of the KDC database.

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

### setKdcDbKeyUri

Optional. The Cloud Storage URI of a KMS encrypted file containing the
master key of the KDC database.

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

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

### getTgtLifetimeHours

Optional. The lifetime of the ticket granting ticket, in hours.

If not specified, or user specifies 0, then default value 10
will be used.

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

### setTgtLifetimeHours

Optional. The lifetime of the ticket granting ticket, in hours.

If not specified, or user specifies 0, then default value 10
will be used.

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

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

### getRealm

Optional. The name of the on-cluster Kerberos realm.

If not specified, the uppercased domain of hostnames will be the realm.

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

### setRealm

Optional. The name of the on-cluster Kerberos realm.

If not specified, the uppercased domain of hostnames will be the realm.

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

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