Interface IHmacAlgorithm
The HmacAlgorithm interface describes a component capable of generating a signature certifying the integrity of a message.
Namespace: EPiServer.Social.Common.Rest
Assembly: EPiServer.Social.Common.Rest.dll
Version: 1.5.4Syntax
public interface IHmacAlgorithm
Properties
ApplicationId
Gets the identifier of the application that this algorithm is configured to support.
Declaration
string ApplicationId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ApplicationSecret
Gets the cryptographic key that this algorithm will use to compute request signatures.
Declaration
string ApplicationSecret { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
ComputeSignature(HmacMessage)
Computes a signature certifying the integrity of the provided message.
Declaration
string ComputeSignature(HmacMessage hmacMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| HmacMessage | hmacMessage | Message to be signed |
Returns
| Type | Description |
|---|---|
| System.String | Signature of the provided message |
GenerateNonce()
Generates a nonce value in a format suitable for computing a message signature.
Declaration
string GenerateNonce()
Returns
| Type | Description |
|---|---|
| System.String | Nonce value |
GenerateTimestamp()
Generates a timestamp, denoting the current time, in a format suitable for computing a message signature.
Declaration
ulong GenerateTimestamp()
Returns
| Type | Description |
|---|---|
| System.UInt64 | Timestamp denoting the current time |