---
schema_version: "1"
id: f4fea9df1f504420633813a73684cdde7c5cce4fbb89710fdb4094b677fb502f
title: VerificationContext Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/apex_class_id_verification_VerificationContext.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3b6f63812d33694cdcd6d3f18d5777a7bb81fa7acbfde4067970b7787593950c
description: Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.Creates an instance of the VerificationContext class with the specified parameter values.Creates an instance of the VerificationContext class with the specified parameter values.Creates an instance of the VerificationContext class.Indicates whether the verification result is successful or not.Indicates the request response message.Represents the identity verification process definition.Represents the details of the object and fields to appear in the search result.Represents the data from primary search, which is used for secondary search.Represents the verified result.
---
# VerificationContext Class

Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.

## Namespace

[id\_verification](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_id_verification.htm "The id_verification namespace provides an interface and classes for Health Cloud to verify the caller’s identity.")

- **[VerificationContext Constructors](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_constructors)**
- **[VerificationContext Properties](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_properties)**

## VerificationContext Constructors

The following are constructors for VerificationContext.

- **[VerificationContext(processDefinition, selectedSearchResult, selectedVerifiedResult, verifiedResult, message, isSuccess)](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_ctor)**  
    Creates an instance of the [VerificationContext](#apex_class_id_verification_VerificationContext "Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.") class with the specified parameter values.
- **[VerificationContext(processDefinition)](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_ctor_2)**  
    Creates an instance of the [VerificationContext](#apex_class_id_verification_VerificationContext "Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.") class with the specified parameter values.
- **[VerificationContext()](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_ctor_3)**  
    Creates an instance of the [VerificationContext](#apex_class_id_verification_VerificationContext "Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.") class.

### VerificationContext(processDefinition, selectedSearchResult, selectedVerifiedResult, verifiedResult, message, isSuccess)

Creates an instance of the [VerificationContext](#apex_class_id_verification_VerificationContext "Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.") class with the specified parameter values.

#### Signature

public VerificationContext(id\_verification.ProcessDefinition processDefinition, id\_verification.SelectedSearchResult selectedSearchResult, id\_verification.SelectedVerifiedResult selectedVerifiedResult, id\_verification.VerifiedResult verifiedResult, String message, Boolean isSuccess)

#### Parameters

processDefinition

Type: [id\_verification.ProcessDefinition](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_ProcessDefinition.htm#apex_class_id_verification_ProcessDefinition "Contains the verification process definition, including the list of process details.")

Required. Represents the identity verification process definition.

selectedSearchResult

Type: [id\_verification.SelectedSearchResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SelectedSearchResult.htm#apex_class_id_verification_SelectedSearchResult "Contains the details of the record that has been selected for verification.")

Required. Represents the details of the object and fields to appear in the search result.

selectedVerifiedResult

Type: [id\_verification.SelectedVerifiedResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SelectedVerifiedResult.htm#apex_class_id_verification_SelectedVerifiedResult "Contains information about the verified object that is used for the secondary search.")

Represents the data from primary search, which is used for secondary search.

verifiedResult

Type: [id\_verification.VerifiedResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerifiedResult.htm#apex_class_id_verification_VerifiedResult "Contains information about the verification result that includes the required verifiers and optional verifiers and the verification status.")

Represents the verified result.

message

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm)

Indicates the request response message.

isSuccess

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_boolean.htm)

Indicates whether the verification result is successful or not.

### VerificationContext(processDefinition)

Creates an instance of the [VerificationContext](#apex_class_id_verification_VerificationContext "Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.") class with the specified parameter values.

#### Signature

public VerificationContext(id\_verification.ProcessDefinition processDefinition)

#### Parameters

processDefinition

Type: [id\_verification.ProcessDefinition](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_ProcessDefinition.htm#apex_class_id_verification_ProcessDefinition "Contains the verification process definition, including the list of process details.")

Required. Represents the identity verification process definition.

### VerificationContext()

Creates an instance of the [VerificationContext](#apex_class_id_verification_VerificationContext "Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.") class.

#### Signature

public VerificationContext()

## VerificationContext Properties

The following are properties for VerificationContext.

- **[isSuccess](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_isSuccess)**  
    Indicates whether the verification result is successful or not.
- **[message](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_message)**  
    Indicates the request response message.
- **[processDefinition](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_processDefinition)**  
    Represents the identity verification process definition.
- **[selectedSearchResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_selectedSearchResult)**  
    Represents the details of the object and fields to appear in the search result.
- **[selectedVerifiedResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_selectedVerifiedResult)**  
    Represents the data from primary search, which is used for secondary search.
- **[verifiedResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_id_verification_VerificationContext_verifiedResult)**  
    Represents the verified result.

### isSuccess

Indicates whether the verification result is successful or not.

#### Signature

public Boolean isSuccess {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_boolean.htm)

### message

Indicates the request response message.

#### Signature

public String message {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm)

### processDefinition

Represents the identity verification process definition.

#### Signature

public id\_verification.ProcessDefinition processDefinition {get; set;}

#### Property Value

Type: [id\_verification.ProcessDefinition](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_ProcessDefinition.htm#apex_class_id_verification_ProcessDefinition "Contains the verification process definition, including the list of process details.")

### selectedSearchResult

Represents the details of the object and fields to appear in the search result.

#### Signature

public id\_verification.SelectedSearchResult selectedSearchResult {get; set;}

#### Property Value

Type: [id\_verification.SelectedSearchResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SelectedSearchResult.htm#apex_class_id_verification_SelectedSearchResult "Contains the details of the record that has been selected for verification.")

### selectedVerifiedResult

Represents the data from primary search, which is used for secondary search.

#### Signature

public id\_verification.SelectedVerifiedResult selectedVerifiedResult {get; set;}

#### Property Value

Type: [id\_verification.SelectedVerifiedResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SelectedVerifiedResult.htm#apex_class_id_verification_SelectedVerifiedResult "Contains information about the verified object that is used for the secondary search.")

### verifiedResult

Represents the verified result.

#### Signature

public id\_verification.VerifiedResult verifiedResult {get; set;}

#### Property Value

Type: [id\_verification.VerifiedResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerifiedResult.htm#apex_class_id_verification_VerifiedResult "Contains information about the verification result that includes the required verifiers and optional verifiers and the verification status.")