ToSignedUri Method
Definition
- Namespace
- Cuemon.Extensions.Net.Security
- Assemblies
- Cuemon.Extensions.Net.dll
ToSignedUri(Uri, byte[], DateTime?, DateTime?, Action<SignedUriOptions>)
Converts the specified uri to a signed and tampering protected Uri.
public static Uri ToSignedUri(this Uri uri, byte[] secret, DateTime? signedStart = null, DateTime? signedExpiry = null, Action<SignedUriOptions> setup = null)
Parameters
uriUriThe URI to protect from tampering.
secretbyte[]The secret key for the encryption.
signedStartDateTime?The time, expressed as the Coordinated Universal Time (UTC), at which the signed URI becomes valid.
signedExpiryDateTime?The time, expressed as the Coordinated Universal Time (UTC), at which the signed URI becomes invalid.
setupAction<SignedUriOptions>The SignedUriOptions which may be configured.