Свойство | Тип | Описание | |
---|---|---|---|
BuildNotificationStringToSign | string | ||
BuildSubscriptionStringToSign | string | ||
GetMessageBytesToSign | byte[] | ||
GetX509Certificate | |||
MakeGetRequest | void | ||
Message | System | ||
ValidateCertUrl | string |
Метод | Описание | |
---|---|---|
IsMessageSignatureValid ( ) : bool |
Verifies the authenticity of a message sent by Amazon SNS. This is done by computing a signature from the fields in the message and then comparing the signature to the signature provided as part of the message.
|
|
ParseMessage ( string messageText ) : Message |
Parses the JSON message from Amazon SNS into the Message object.
|
|
SubscribeToTopic ( ) : void |
Uses the SubscribeURL property to subscribe to the topic
|
|
UnsubscribeFromTopic ( ) : void |
Uses the UnsubscribeURL property to unsubscribe from the topic
|
Метод | Описание | |
---|---|---|
BuildNotificationStringToSign ( ) : string |
Build the string to sign for SubscriptionConfirmation and UnsubscribeConfirmation messages.
|
|
BuildSubscriptionStringToSign ( ) : string |
Build the string to sign for Notification messages.
|
|
GetMessageBytesToSign ( ) : byte[] | ||
GetX509Certificate ( ) : |
||
MakeGetRequest ( string url, string action ) : void | ||
Message ( ) : System | ||
ValidateCertUrl ( string certUrl ) : string |
Verifies that the signing certificate url is from a recognizable source. Returns the cert url if it cen be verified, otherwise throws an exception.
|
public static ParseMessage ( string messageText ) : Message | ||
messageText | string | The JSON text from an Amazon SNS message |
Результат | Message |