Skip to content

Commit

Permalink
chore: update cake dotnet version
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddesmet committed May 16, 2024
1 parent 427ec4e commit 58f78f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Task("Test")
Blame = true,
Collectors = new string[] { "XPlat Code Coverage" },
Configuration = configuration,
Framework = "net6.0",
Framework = "net8.0",
Loggers = new string[]
{
$"trx;LogFileName={project.GetFilenameWithoutExtension()}.trx",
Expand Down
8 changes: 4 additions & 4 deletions src/Paseto/Builder/PasetoBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,15 @@ public PasetoAsymmetricKeyPair GenerateAsymmetricKeyPair(byte[] seed = null)
/// </summary>
/// <param name="type">The PASERK type.</param>
/// <returns>The encoded serialized key in PASERK format.</returns>
/// <exception cref="PasetoBuilderException">Can't generate PASERK key. Check if you have call the 'Use' method.</exception>
/// <exception cref="PasetoBuilderException">Can't generate PASERK key. Check if you have call the 'WithKey' method.</exception>
/// <exception cref="PasetoBuilderException">Can't generate PASERK serialized key. Check if you have call the 'Use' method.</exception>
/// <exception cref="PasetoBuilderException">Can't generate PASERK serialized key. Check if you have call the 'WithKey' method.</exception>
public string GenerateSerializedKey(PaserkType type)
{
if (_protocol is null)
throw new PasetoBuilderException("Can't generate PASERK key. Check if you have call the 'Use' method.");
throw new PasetoBuilderException("Can't generate PASERK serialized key. Check if you have call the 'Use' method.");

if (_pasetoKey is null)
throw new PasetoBuilderException("Can't generate PASERK key. Check if you have call the 'WithKey' method.");
throw new PasetoBuilderException("Can't generate PASERK serialized key. Check if you have call the 'WithKey' method.");

return Paserk.Encode(_pasetoKey, type);
}
Expand Down

0 comments on commit 58f78f6

Please sign in to comment.