0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class Authentication.

The Authentication extension captures details specific to authentication
events.

General guidelines for authentication events:

- Details about the source of the authentication event (for example, client IP or hostname), should be captured in principal. The principal may be empty if we have no details about the source of the login.
- Details about the target of the authentication event (for example, details about the machine that is being logged into or logged out of) should be captured in target.
- Some authentication events may involve a third-party. For example, a user logs into a cloud service (for example, Chronicle) via their company's SSO (the event is logged by their SSO solution). In this case, the principal captures information about the user's device, the target captures details about the cloud service they logged into, and the intermediary captures details about the SSO solution.

Generated from protobuf message `google.backstory.Authentication`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` The type of authentication. |
| `↳ mechanism` | `int[]` The authentication mechanism. |
| `↳ auth_details` | `string` The vendor defined details of the authentication. |
| `↳ outcome` | `int` The outcome of the authentication event. |

### getType

The type of authentication.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AuthType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Authentication.AuthType.md.txt). |

### setType

The type of authentication.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AuthType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Authentication.AuthType.md.txt). |

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

### getMechanism

The authentication mechanism.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<int>` |   |

### setMechanism

The authentication mechanism.

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

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

### getAuthDetails

The vendor defined details of the authentication.

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

### setAuthDetails

The vendor defined details of the authentication.

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

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

### getOutcome

The outcome of the authentication event.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Outcome](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Authentication.Outcome.md.txt). |

### setOutcome

The outcome of the authentication event.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Outcome](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Authentication.Outcome.md.txt). |

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