Skip to main content

TSNSMessageVerifier

Class in AWS.SNS

Message verification class for Amazon SNS messages.

Ancestors

  • TObject

Constructors

Create

constructor Create(const AAllowInsecure: Boolean = False);

Constructor for TSNSMessageVerifier.

Parameters

NameDescription
AAllowInsecureAllow insecure certificate sources. Leave. Do not change. Used for testing only.

Methods

Authenticate

class function Authenticate(const AMessage: string; AAllowInsecure: Boolean = False): Boolean; overload; static;

Authenticates a message.

Parameters

NameDescription
AMessageA string containing a JSON encoded SNS message to verify.
AAllowInsecureAllow insecure certificate sources. Leave. Do not change. Used for testing only.

Returns

Boolean indicating the authenticity of the message.

IsAuthentic

function IsAuthentic(const AMessage: string): Boolean;

Authenticates a message.

Parameters

NameDescription
AMessageA string containing a JSON encoded SNS message to verify.

Returns

Boolean indicating the authenticity of the message.