Skip to content

Commit

Permalink
Add aes128gcm
Browse files Browse the repository at this point in the history
* Update the HTTP Encrypted Content Encoding implementation to support
aes128gcm, as defined in the 9th version of the draft [1].
* Update the Web Push implementation to use aes128gcm, as defined in the
9th version of the draft [2].

[1] https://tools.ietf.org/html/draft-ietf-httpbis-encryption-encoding-09
[2] https://tools.ietf.org/html/draft-ietf-webpush-encryption-09
  • Loading branch information
martijndwars committed Nov 10, 2018
1 parent 8fcb2b9 commit ecd7b02
Show file tree
Hide file tree
Showing 11 changed files with 726 additions and 124 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ build/
.gradle/
*.iml
target/
out/
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,5 @@
# 4.0.0

* Support [aes128gcm content encoding](https://tools.ietf.org/html/draft-ietf-httpbis-encryption-encoding-09#section-2)
* Use `PushService.send(Notification, Encoding)` or the analogous `sendAsync` with `Encoding.AES128GCM`.

5 changes: 5 additions & 0 deletions src/main/java/nl/martijndwars/webpush/Encoding.java
@@ -0,0 +1,5 @@
package nl.martijndwars.webpush;

public enum Encoding {
AESGCM, AES128GCM
}

0 comments on commit ecd7b02

Please sign in to comment.