# Google Cloud Web Security Scanner V1 Client - Class IapCredential (1.2.0)

1.2.0 (latest) 1.1.2 1.0.5 0.8.5 0.7.18 Reference documentation and code samples for the Google Cloud Web Security Scanner V1 Client class IapCredential.

Describes authentication configuration for Identity-Aware-Proxy (IAP).

Generated from protobuf message `google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential`

## Namespace

Google \\ Cloud \\ WebSecurityScanner \\ V1 \\ ScanConfig \\ Authentication

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ iap_test_service_account_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo` Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. |

### getIapTestServiceAccountInfo

Authentication configuration when Web-Security-Scanner service
account is added in Identity-Aware-Proxy (IAP) access policies.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo|null` |   |

### hasIapTestServiceAccountInfo

### setIapTestServiceAccountInfo

Authentication configuration when Web-Security-Scanner service
account is added in Identity-Aware-Proxy (IAP) access policies.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo` |

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

### getIapCredentials

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