---
schema_version: "1"
id: 7c11167e3d4421b06c09f83d6e11385232ffbaecca56dfc25c9b25f7389c46b0
title: InboundEmail.AuthenticationResult Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Messaging_InboundEmail_AuthenticationResult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Messaging_InboundEmail_AuthenticationResult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3b2af51d63dbad870adfb5c410f80abd35a9ce91cb8af38fe5297f683c19f855
description: "Contains the authentication type and response for inbound emails.Creates a new instance of the Messaging.InboundEmail.AuthenticationResult class.Additional information in authentication result headers. Examples include: name: smtp.mailfrom and value: example.com.The authentication method used for the security check. Possible values include dkim, dmarc, or spf. The result of the authentication check. When the email service is configured to verify the legitimacy of the sending server before processing a message, possible values include pass or fail. Otherwise, the value returned is none."
---
# InboundEmail.AuthenticationResult Class

Contains the authentication type and response for inbound emails.

## Namespace

[Messaging](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Messaging.htm "The Messaging namespace provides classes and methods for Salesforce notifications and email functionality.")

- **[InboundEmail.AuthenticationResult Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Messaging_InboundEmail_AuthenticationResult.htm#apex_Messaging_InboundEmail_AuthenticationResult_constructors)**
- **[InboundEmail.AuthenticationResult Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Messaging_InboundEmail_AuthenticationResult.htm#apex_Messaging_InboundEmail_AuthenticationResult_properties)**

## InboundEmail.AuthenticationResult Constructors

The following are constructors for InboundEmail.AuthenticationResult.

- **[InboundEmail.AuthenticationResult()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Messaging_InboundEmail_AuthenticationResult.htm#apex_Messaging_InboundEmail_AuthenticationResult_ctor)**  
    Creates a new instance of the Messaging.InboundEmail.AuthenticationResult class.

### InboundEmail.AuthenticationResult()

Creates a new instance of the Messaging.InboundEmail.AuthenticationResult class.

#### Signature

public InboundEmail.AuthenticationResult()

## InboundEmail.AuthenticationResult Properties

The following are properties for InboundEmail.AuthenticationResult.

- **[authenticationResultFields](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Messaging_InboundEmail_AuthenticationResult.htm#apex_Messaging_InboundEmail_AuthenticationResult_authenticationResultFields)**  
    Additional information in authentication result headers. Examples include: name: smtp.mailfrom and value: example.com.
- **[method](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Messaging_InboundEmail_AuthenticationResult.htm#apex_Messaging_InboundEmail_AuthenticationResult_method)**  
    The authentication method used for the security check. Possible values include dkim, dmarc, or spf.
- **[result](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Messaging_InboundEmail_AuthenticationResult.htm#apex_Messaging_InboundEmail_AuthenticationResult_result)**  
    The result of the authentication check. When the email service is configured to verify the legitimacy of the sending server before processing a message, possible values include pass or fail. Otherwise, the value returned is none.

### authenticationResultFields

Additional information in authentication result headers. Examples include: name: smtp.mailfrom and value: example.com.

#### Signature

public InboundEmail.AuthenticationResultField\[\] authenticationResultFields {get; set;}

#### Property Value

Type: [InboundEmail.AuthenticationResultField](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Messaging_InboundEmail_AuthenticationResultField.htm#apex_class_Messaging_InboundEmail_AuthenticationResultField "Contains field data from the authentication result response for inbound emails.")\[\]

### method

The authentication method used for the security check. Possible values include dkim, dmarc, or spf.

#### Signature

public String method {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### result

The result of the authentication check. When the email service is configured to verify the legitimacy of the sending server before processing a message, possible values include pass or fail. Otherwise, the value returned is none.

#### Signature

public String result {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")