# Interface KerberosConfigOrBuilder (4.90.0)

4.90.0 (latest) 4.88.0 4.85.0 4.84.0 4.82.0 4.80.0 4.79.0 4.78.0 4.77.0 4.75.0 4.73.0 4.72.0 4.71.0 4.70.0 4.69.0 4.67.0 4.65.0 4.64.0 4.61.0 4.60.0 4.59.0 4.57.0 4.56.0 4.55.0 4.54.0 4.53.0 4.52.0 4.51.0 4.50.0 4.49.0 4.48.0 4.46.0 4.45.0 4.44.0 4.43.0 4.42.0 4.41.0 4.40.0 4.39.0 4.38.0 4.37.0 4.36.0 4.34.0 4.33.0 4.32.0 4.31.0 4.30.0 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.8 3.1.2 3.0.3 2.3.1

    public interface KerberosConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCrossRealmTrustAdminServer()

    public abstract String getCrossRealmTrustAdminServer()

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

`string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The crossRealmTrustAdminServer. |

### getCrossRealmTrustAdminServerBytes()

    public abstract ByteString getCrossRealmTrustAdminServerBytes()

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

`string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for crossRealmTrustAdminServer. |

### getCrossRealmTrustKdc()

    public abstract String getCrossRealmTrustKdc()

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

`string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The crossRealmTrustKdc. |

### getCrossRealmTrustKdcBytes()

    public abstract ByteString getCrossRealmTrustKdcBytes()

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

`string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for crossRealmTrustKdc. |

### getCrossRealmTrustRealm()

    public abstract String getCrossRealmTrustRealm()

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

`string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The crossRealmTrustRealm. |

### getCrossRealmTrustRealmBytes()

    public abstract ByteString getCrossRealmTrustRealmBytes()

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

`string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for crossRealmTrustRealm. |

### getCrossRealmTrustSharedPasswordUri()

    public abstract String 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.

`
string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The crossRealmTrustSharedPasswordUri. |

### getCrossRealmTrustSharedPasswordUriBytes()

    public abstract ByteString getCrossRealmTrustSharedPasswordUriBytes()

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.

`
string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for crossRealmTrustSharedPasswordUri. |

### getEnableKerberos()

    public abstract boolean getEnableKerberos()

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

`bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enableKerberos. |

### getKdcDbKeyUri()

    public abstract String getKdcDbKeyUri()

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

`string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kdcDbKeyUri. |

### getKdcDbKeyUriBytes()

    public abstract ByteString getKdcDbKeyUriBytes()

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

`string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kdcDbKeyUri. |

### getKeyPasswordUri()

    public abstract String 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.

`string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The keyPasswordUri. |

### getKeyPasswordUriBytes()

    public abstract ByteString getKeyPasswordUriBytes()

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.

`string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for keyPasswordUri. |

### getKeystorePasswordUri()

    public abstract String 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.

`string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The keystorePasswordUri. |

### getKeystorePasswordUriBytes()

    public abstract ByteString getKeystorePasswordUriBytes()

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.

`string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for keystorePasswordUri. |

### getKeystoreUri()

    public abstract String getKeystoreUri()

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

`string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The keystoreUri. |

### getKeystoreUriBytes()

    public abstract ByteString getKeystoreUriBytes()

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

`string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for keystoreUri. |

### getKmsKeyUri()

    public abstract String getKmsKeyUri()

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

`string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kmsKeyUri. |

### getKmsKeyUriBytes()

    public abstract ByteString getKmsKeyUriBytes()

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

`string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kmsKeyUri. |

### getRealm()

    public abstract String getRealm()

Optional. The name of the on-cluster Kerberos realm.
If not specified, the uppercased domain of hostnames will be the realm.

`string realm = 15 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The realm. |

### getRealmBytes()

    public abstract ByteString getRealmBytes()

Optional. The name of the on-cluster Kerberos realm.
If not specified, the uppercased domain of hostnames will be the realm.

`string realm = 15 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for realm. |

### getRootPrincipalPasswordUri()

    public abstract String getRootPrincipalPasswordUri()

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

`string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The rootPrincipalPasswordUri. |

### getRootPrincipalPasswordUriBytes()

    public abstract ByteString getRootPrincipalPasswordUriBytes()

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

`string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for rootPrincipalPasswordUri. |

### getTgtLifetimeHours()

    public abstract int 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.

`int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The tgtLifetimeHours. |

### getTruststorePasswordUri()

    public abstract String 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.

`string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The truststorePasswordUri. |

### getTruststorePasswordUriBytes()

    public abstract ByteString getTruststorePasswordUriBytes()

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.

`string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for truststorePasswordUri. |

### getTruststoreUri()

    public abstract String getTruststoreUri()

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

`string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The truststoreUri. |

### getTruststoreUriBytes()

    public abstract ByteString getTruststoreUriBytes()

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

`string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for truststoreUri. |