# Google Cloud Iap V1 Client - Class ReauthSettings (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.3 1.4.5 1.3.4 1.2.3 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Iap V1 Client class ReauthSettings.

Configuration for IAP reauthentication policies.

Generated from protobuf message `google.cloud.iap.v1.ReauthSettings`

## Namespace

Google \\ Cloud \\ Iap \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ method` | `int` Optional. Reauth method requested. |
| `↳ max_age` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. Reauth session lifetime, how long before a user has to reauthenticate again. |
| `↳ policy_type` | `int` Optional. How IAP determines the effective policy in cases of hierarchical policies. Policies are merged from higher in the hierarchy to lower in the hierarchy. |

### getMethod

Optional. Reauth method requested.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Method](https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.ReauthSettings.Method). |

### setMethod

Optional. Reauth method requested.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Method](https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.ReauthSettings.Method). |

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

### getMaxAge

Optional. Reauth session lifetime, how long before a user has to
reauthenticate again.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasMaxAge

### clearMaxAge

### setMaxAge

Optional. Reauth session lifetime, how long before a user has to
reauthenticate again.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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

### getPolicyType

Optional. How IAP determines the effective policy in cases of hierarchical
policies. Policies are merged from higher in the hierarchy to lower in the
hierarchy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [PolicyType](https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.ReauthSettings.PolicyType). |

### setPolicyType

Optional. How IAP determines the effective policy in cases of hierarchical
policies. Policies are merged from higher in the hierarchy to lower in the
hierarchy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [PolicyType](https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.ReauthSettings.PolicyType). |

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