---
schema_version: "1"
id: dc69ff8eafa061852a9171aa030801414d53c8f06e90d19bab9e0fc2edccd0a6
title: AuthRequestResult Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_AuthRequestResult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 42830fac75ee5c410a0245ad94d019cc812b2c5d7f7a33c28c32c7143d82381c
description: This class contains the result from handling the authorization request response.Creates a new instance of the RichMessaging.AuthRequestResult class.The expiration date and time.The reference to the redirect page.The result status value.
---
# AuthRequestResult Class

This class contains the result from handling the authorization request response.

## Namespace

[RichMessaging](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_RichMessaging.htm "Provides objects and methods for handling content in enhanced Messaging channels.")

- **[AuthRequestResult Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResult.htm#apex_RichMessaging_AuthRequestResult_constructors)**
- **[AuthRequestResult Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResult.htm#apex_RichMessaging_AuthRequestResult_properties)**

## AuthRequestResult Constructors

The following are constructors for AuthRequestResult.

- **[AuthRequestResult(redirectPageReference, resultStatus, expirationDateTime)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResult.htm#apex_RichMessaging_AuthRequestResult_ctor)**  
    Creates a new instance of the RichMessaging.AuthRequestResult class.

### AuthRequestResult(redirectPageReference, resultStatus, expirationDateTime)

Creates a new instance of the RichMessaging.AuthRequestResult class.

#### Signature

public AuthRequestResult(System.PageReference redirectPageReference, RichMessaging.AuthRequestResultStatus resultStatus, Datetime expirationDateTime)

#### Parameters

- **redirectPageReference**: Type: [System.PageReference](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_system_pagereference.htm "A PageReference is a reference to an instantiation of a page. Among other attributes, PageReferences consist of a URL and a set of query parameter names and values.") The reference to the redirect page.
- **resultStatus**: Type: [RichMessaging.AuthRequestResultStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_AuthRequestResultStatus.htm "This enum describes the authentication result status.") The result status value.
- **expirationDateTime**: Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.") The expiration time.

## AuthRequestResult Properties

The following are properties for AuthRequestResult.

- **[expirationDateTime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResult.htm#apex_RichMessaging_AuthRequestResult_expirationDateTime)**  
    The expiration date and time.
- **[redirectPageReference](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResult.htm#apex_RichMessaging_AuthRequestResult_redirectPageReference)**  
    The reference to the redirect page.
- **[resultStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResult.htm#apex_RichMessaging_AuthRequestResult_resultStatus)**  
    The result status value.

### expirationDateTime

The expiration date and time.

#### Signature

public Datetime expirationDateTime {get; set;}

#### Property Value

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

### redirectPageReference

The reference to the redirect page.

#### Signature

public System.PageReference redirectPageReference {get; set;}

#### Property Value

Type: [System.PageReference](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_system_pagereference.htm "A PageReference is a reference to an instantiation of a page. Among other attributes, PageReferences consist of a URL and a set of query parameter names and values.")

### resultStatus

The result status value.

#### Signature

public RichMessaging.AuthRequestResultStatus resultStatus {get; set;}

#### Property Value

Type: [RichMessaging.AuthRequestResultStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_AuthRequestResultStatus.htm "This enum describes the authentication result status.")