# Google Cloud Web Security Scanner V1 Client - Class Authentication (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 Authentication.

Scan authentication configuration.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ google_account` | `Authentication\GoogleAccount` Authentication using a Google account. |
| `↳ custom_account` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.ScanConfig.Authentication.CustomAccount` Authentication using a custom account. |
| `↳ iap_credential` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.ScanConfig.Authentication.IapCredential` Authentication using Identity-Aware-Proxy (IAP). |

### getGoogleAccount

Authentication using a Google account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Authentication\GoogleAccount|null` |   |

### hasGoogleAccount

### setGoogleAccount

Authentication using a Google account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Authentication\GoogleAccount` |

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

### getCustomAccount

Authentication using a custom account.

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

### hasCustomAccount

### setCustomAccount

Authentication using a custom account.

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

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

### getIapCredential

Authentication using Identity-Aware-Proxy (IAP).

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

### hasIapCredential

### setIapCredential

Authentication using Identity-Aware-Proxy (IAP).

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

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

### getAuthentication

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