Skip navigation links
A B C D E F G H I K L N P S U V W 

A

auth - Variable in class nl.martijndwars.webpush.Subscription.Keys
 

B

base64Decode(String) - Static method in class nl.martijndwars.webpush.Utils
Base64-decode a string.
build() - Method in class nl.martijndwars.webpush.Encrypted.Builder
 
Builder() - Constructor for class nl.martijndwars.webpush.Encrypted.Builder
 
buildInfo(String, byte[]) - Static method in class nl.martijndwars.webpush.HttpEce
Future versions might require a null-terminated info string?

C

cancelled() - Method in class nl.martijndwars.webpush.ClosableCallback
 
ClosableCallback - Class in nl.martijndwars.webpush
Java 7's try-with-resource closes the client before the future is completed.
ClosableCallback(CloseableHttpAsyncClient) - Constructor for class nl.martijndwars.webpush.ClosableCallback
 
completed(HttpResponse) - Method in class nl.martijndwars.webpush.ClosableCallback
 

D

deriveKey(byte[], byte[], String, PublicKey, byte[], int) - Method in class nl.martijndwars.webpush.HttpEce
 

E

encrypt(byte[], byte[], byte[], String, PublicKey, byte[], int) - Method in class nl.martijndwars.webpush.HttpEce
 
encrypt(byte[], PublicKey, byte[], int) - Static method in class nl.martijndwars.webpush.PushService
Encrypt the payload using the user's public key using Elliptic Curve Diffie Hellman cryptography over the prime256v1 curve.
Encrypted - Class in nl.martijndwars.webpush
 
Encrypted(PublicKey, byte[], byte[]) - Constructor for class nl.martijndwars.webpush.Encrypted
 
Encrypted.Builder - Class in nl.martijndwars.webpush
 
endpoint - Variable in class nl.martijndwars.webpush.Subscription
 

F

failed(Exception) - Method in class nl.martijndwars.webpush.ClosableCallback
 

G

getCiphertext() - Method in class nl.martijndwars.webpush.Encrypted
 
getEndpoint() - Method in class nl.martijndwars.webpush.Notification
 
getOrigin() - Method in class nl.martijndwars.webpush.Notification
 
getPadSize() - Method in class nl.martijndwars.webpush.Notification
 
getPayload() - Method in class nl.martijndwars.webpush.Notification
 
getPublicKey() - Method in class nl.martijndwars.webpush.Encrypted
 
getSalt() - Method in class nl.martijndwars.webpush.Encrypted
 
getTTL() - Method in class nl.martijndwars.webpush.Notification
 
getUserAuth() - Method in class nl.martijndwars.webpush.Notification
 
getUserPublicKey() - Method in class nl.martijndwars.webpush.Notification
 

H

hasPayload() - Method in class nl.martijndwars.webpush.Notification
 
hkdfExpand(byte[], byte[], byte[], int) - Static method in class nl.martijndwars.webpush.HttpEce
Convenience method for computing the HMAC Key Derivation Function.
HttpEce - Class in nl.martijndwars.webpush
An implementation of HTTP ECE (Encrypted Content Encoding) as described in https://tools.ietf.org/html/draft-ietf-httpbis-encryption-encoding-01
HttpEce(Map<String, KeyPair>, Map<String, String>) - Constructor for class nl.martijndwars.webpush.HttpEce
 

I

isGcm() - Method in class nl.martijndwars.webpush.Notification
Detect if the notification is for a GCM-based subscription

K

keys - Variable in class nl.martijndwars.webpush.Subscription
 
Keys() - Constructor for class nl.martijndwars.webpush.Subscription.Keys
 

L

loadPrivateKey(String) - Static method in class nl.martijndwars.webpush.Utils
Load the private key from a URL-safe base64 encoded string
loadPublicKey(String) - Static method in class nl.martijndwars.webpush.Utils
Load the public key from a URL-safe base64 encoded string.

N

nl.martijndwars.webpush - package nl.martijndwars.webpush
 
Notification - Class in nl.martijndwars.webpush
 
Notification(String, PublicKey, byte[], byte[], int) - Constructor for class nl.martijndwars.webpush.Notification
 
Notification(String, PublicKey, byte[], byte[]) - Constructor for class nl.martijndwars.webpush.Notification
 
Notification(String, String, String, byte[]) - Constructor for class nl.martijndwars.webpush.Notification
 
Notification(String, String, String, String) - Constructor for class nl.martijndwars.webpush.Notification
 
Notification(Subscription, String) - Constructor for class nl.martijndwars.webpush.Notification
 

P

p256dh - Variable in class nl.martijndwars.webpush.Subscription.Keys
 
PushService - Class in nl.martijndwars.webpush
 
PushService() - Constructor for class nl.martijndwars.webpush.PushService
 
PushService(String) - Constructor for class nl.martijndwars.webpush.PushService
 
PushService(KeyPair, String) - Constructor for class nl.martijndwars.webpush.PushService
 
PushService(String, String, String) - Constructor for class nl.martijndwars.webpush.PushService
 

S

savePrivateKey(ECPrivateKey) - Static method in class nl.martijndwars.webpush.Utils
 
savePublicKey(ECPublicKey) - Static method in class nl.martijndwars.webpush.Utils
Get the uncompressed encoding of the public key point.
send(Notification) - Method in class nl.martijndwars.webpush.PushService
Send a notification and wait for the response.
sendAsync(Notification) - Method in class nl.martijndwars.webpush.PushService
Send a notification, but don't wait for the response.
setGcmApiKey(String) - Method in class nl.martijndwars.webpush.PushService
Set the Google Cloud Messaging (GCM) API key
setKeyPair(KeyPair) - Method in class nl.martijndwars.webpush.PushService
Set the public and private key (for VAPID).
setPrivateKey(PrivateKey) - Method in class nl.martijndwars.webpush.PushService
Set the private key (for VAPID)
setPublicKey(PublicKey) - Method in class nl.martijndwars.webpush.PushService
Set the public key (for VAPID)
setSubject(String) - Method in class nl.martijndwars.webpush.PushService
Set the JWT subject (for VAPID)
Subscription - Class in nl.martijndwars.webpush
 
Subscription() - Constructor for class nl.martijndwars.webpush.Subscription
 
Subscription.Keys - Class in nl.martijndwars.webpush
 

U

Utils - Class in nl.martijndwars.webpush
 
Utils() - Constructor for class nl.martijndwars.webpush.Utils
 

V

vapidEnabled() - Method in class nl.martijndwars.webpush.PushService
Check if VAPID is enabled

W

withCiphertext(byte[]) - Method in class nl.martijndwars.webpush.Encrypted.Builder
 
withPublicKey(PublicKey) - Method in class nl.martijndwars.webpush.Encrypted.Builder
 
withSalt(byte[]) - Method in class nl.martijndwars.webpush.Encrypted.Builder
 
A B C D E F G H I K L N P S U V W 
Skip navigation links