Skip to content
Snippets Groups Projects
Commit 1054e702 authored by Klaus Fischer's avatar Klaus Fischer
Browse files

Reformated file

parent de26e309
No related branches found
No related tags found
1 merge request!3Feature/440 mvp net sdk part 1
...@@ -40,7 +40,7 @@ public class JoseEncryptor : IEncryptor { ...@@ -40,7 +40,7 @@ public class JoseEncryptor : IEncryptor {
{ "kid", jwk.KeyId }, { "kid", jwk.KeyId },
{ "cty", "application/json" } { "cty", "application/json" }
} }
); );
} }
catch (PlatformNotSupportedException e) { catch (PlatformNotSupportedException e) {
throw new PlatformNotSupportedException(ErrorMessage, e); throw new PlatformNotSupportedException(ErrorMessage, e);
...@@ -52,7 +52,8 @@ public class JoseEncryptor : IEncryptor { ...@@ -52,7 +52,8 @@ public class JoseEncryptor : IEncryptor {
var jwk = Jwk.FromJson(key, new Jose.JsonMapper()); var jwk = Jwk.FromJson(key, new Jose.JsonMapper());
return JWE.EncryptBytes(plain, return JWE.EncryptBytes(plain,
new JweRecipient[] { new JweRecipient(Algorithm, jwk) }, new JweRecipient[] { new JweRecipient(Algorithm, jwk) },
Encryption, compression: Compression, Encryption,
compression: Compression,
mode: SerializationMode, mode: SerializationMode,
extraProtectedHeaders: new Dictionary<string, object> { extraProtectedHeaders: new Dictionary<string, object> {
{ "kid", jwk.KeyId }, { "kid", jwk.KeyId },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment