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

A

ALGORITHM - Static variable in class nl.martijndwars.webpush.Utils
 
auth - Variable in class nl.martijndwars.webpush.Subscription.Keys
 

B

Base64Encoder - Class in nl.martijndwars.webpush
Java 7 compatible Base64 encode/decode functions.
Base64Encoder() - Constructor for class nl.martijndwars.webpush.Base64Encoder
 
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
 
Cli - Class in nl.martijndwars.webpush.cli
Command-line interface
Cli() - Constructor for class nl.martijndwars.webpush.cli.Cli
 
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
 
combinedLength(byte[]...) - Static method in class nl.martijndwars.webpush.Utils
Compute combined array length
completed(HttpResponse) - Method in class nl.martijndwars.webpush.ClosableCallback
 
concat(byte[]...) - Static method in class nl.martijndwars.webpush.Utils
Utility to concat byte arrays
CURVE - Static variable in class nl.martijndwars.webpush.Utils
 

D

decode(String) - Static method in class nl.martijndwars.webpush.Base64Encoder
 
decrypt(byte[], byte[], byte[], String, Encoding) - Method in class nl.martijndwars.webpush.HttpEce
Decrypt the payload.
decryptRecord(byte[], byte[], byte[], Encoding) - Method in class nl.martijndwars.webpush.HttpEce
 
deriveKeyAndNonce(byte[], byte[], String, ECPublicKey, byte[], Encoding, int) - Method in class nl.martijndwars.webpush.HttpEce
 

E

encode(ECPublicKey) - Static method in class nl.martijndwars.webpush.Utils
Get the uncompressed encoding of the public key point.
encode(ECPrivateKey) - Static method in class nl.martijndwars.webpush.Utils
 
encodeUrl(byte[]) - Static method in class nl.martijndwars.webpush.Base64Encoder
 
encodeUrlWithoutPadding(byte[]) - Static method in class nl.martijndwars.webpush.Base64Encoder
 
encodeWithoutPadding(byte[]) - Static method in class nl.martijndwars.webpush.Base64Encoder
 
Encoding - Enum in nl.martijndwars.webpush
 
encrypt(byte[], byte[], byte[], String, ECPublicKey, byte[], Encoding) - Method in class nl.martijndwars.webpush.HttpEce
Encrypt the given plaintext.
encrypt(byte[], ECPublicKey, byte[], Encoding) - Static method in class nl.martijndwars.webpush.PushService
Encrypt the payload.
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
 
extractSecretAndContext(byte[], String, ECPublicKey, byte[]) - Method in class nl.martijndwars.webpush.HttpEce
 

F

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

G

GenerateKeyCommand - Class in nl.martijndwars.webpush.cli.commands
 
GenerateKeyCommand() - Constructor for class nl.martijndwars.webpush.cli.commands.GenerateKeyCommand
 
GenerateKeyHandler - Class in nl.martijndwars.webpush.cli.handlers
 
GenerateKeyHandler(GenerateKeyCommand) - Constructor for class nl.martijndwars.webpush.cli.handlers.GenerateKeyHandler
 
generateKeyPair() - Method in class nl.martijndwars.webpush.cli.handlers.GenerateKeyHandler
Generate an EC keypair on the prime256v1 curve.
getCiphertext() - Method in class nl.martijndwars.webpush.Encrypted
 
getEndpoint() - Method in class nl.martijndwars.webpush.Notification
 
getKeyPair() - Method in class nl.martijndwars.webpush.PushService
 
getOrigin() - Method in class nl.martijndwars.webpush.Notification
 
getPayload() - Method in class nl.martijndwars.webpush.cli.commands.SendNotificationCommand
 
getPayload() - Method in class nl.martijndwars.webpush.Notification
 
getPrivateKey() - Method in class nl.martijndwars.webpush.cli.commands.SendNotificationCommand
 
getPrivateKey() - Method in class nl.martijndwars.webpush.PushService
 
getPublicKey() - Method in class nl.martijndwars.webpush.cli.commands.SendNotificationCommand
 
getPublicKey() - Method in class nl.martijndwars.webpush.Encrypted
 
getPublicKey() - Method in class nl.martijndwars.webpush.PushService
 
getPublicKeyFile() - Method in class nl.martijndwars.webpush.cli.commands.GenerateKeyCommand
 
getSalt() - Method in class nl.martijndwars.webpush.Encrypted
 
getSubscription() - Method in class nl.martijndwars.webpush.cli.commands.SendNotificationCommand
 
getTtl() - Method in class nl.martijndwars.webpush.cli.commands.SendNotificationCommand
 
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

HandlerInterface - Interface in nl.martijndwars.webpush.cli.handlers
 
hasPayload() - Method in class nl.martijndwars.webpush.Notification
 
hasPublicKeyFile() - Method in class nl.martijndwars.webpush.cli.commands.GenerateKeyCommand
 
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 Encrypted Content-Encoding for HTTP.
HttpEce() - Constructor for class nl.martijndwars.webpush.HttpEce
 
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

KEY_LENGTH - Static variable in class nl.martijndwars.webpush.HttpEce
 
keys - Variable in class nl.martijndwars.webpush.Subscription
 
Keys() - Constructor for class nl.martijndwars.webpush.Subscription.Keys
 
Keys(String, String) - 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.
loadPublicKey(ECPrivateKey) - Static method in class nl.martijndwars.webpush.Utils
Load a public key from the private key.

M

main(String[]) - Static method in class nl.martijndwars.webpush.cli.Cli
 

N

nl.martijndwars.webpush - package nl.martijndwars.webpush
 
nl.martijndwars.webpush.cli - package nl.martijndwars.webpush.cli
 
nl.martijndwars.webpush.cli.commands - package nl.martijndwars.webpush.cli.commands
 
nl.martijndwars.webpush.cli.handlers - package nl.martijndwars.webpush.cli.handlers
 
Notification - Class in nl.martijndwars.webpush
 
Notification(String, ECPublicKey, byte[], byte[], int) - Constructor for class nl.martijndwars.webpush.Notification
 
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
 
parseHeader(byte[]) - Method in class nl.martijndwars.webpush.HttpEce
 
preparePost(Notification, Encoding) - Method in class nl.martijndwars.webpush.PushService
Prepare a HttpPost for Apache async http client
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
 

R

run() - Method in class nl.martijndwars.webpush.cli.handlers.GenerateKeyHandler
 
run() - Method in interface nl.martijndwars.webpush.cli.handlers.HandlerInterface
 
run() - Method in class nl.martijndwars.webpush.cli.handlers.SendNotificationHandler
 

S

send(Notification, Encoding) - Method in class nl.martijndwars.webpush.PushService
Send a notification and wait for the response.
send(Notification) - Method in class nl.martijndwars.webpush.PushService
 
sendAsync(Notification, Encoding) - Method in class nl.martijndwars.webpush.PushService
Send a notification, but don't wait for the response.
sendAsync(Notification) - Method in class nl.martijndwars.webpush.PushService
 
SendNotificationCommand - Class in nl.martijndwars.webpush.cli.commands
 
SendNotificationCommand() - Constructor for class nl.martijndwars.webpush.cli.commands.SendNotificationCommand
 
SendNotificationHandler - Class in nl.martijndwars.webpush.cli.handlers
 
SendNotificationHandler(SendNotificationCommand) - Constructor for class nl.martijndwars.webpush.cli.handlers.SendNotificationHandler
 
SERVER_KEY_CURVE - Static variable in class nl.martijndwars.webpush.PushService
 
SERVER_KEY_ID - Static variable in class nl.martijndwars.webpush.PushService
 
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(String) - Method in class nl.martijndwars.webpush.PushService
Set the public key using a base64url-encoded string.
setPrivateKey(PrivateKey) - Method in class nl.martijndwars.webpush.PushService
Set the private key (for VAPID)
setPublicKey(String) - Method in class nl.martijndwars.webpush.PushService
Set the public key using a base64url-encoded string.
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)
SHA_256_LENGTH - Static variable in class nl.martijndwars.webpush.HttpEce
 
Subscription - Class in nl.martijndwars.webpush
 
Subscription() - Constructor for class nl.martijndwars.webpush.Subscription
 
Subscription(String, Subscription.Keys) - Constructor for class nl.martijndwars.webpush.Subscription
 
Subscription.Keys - Class in nl.martijndwars.webpush
 

T

TAG_SIZE - Static variable in class nl.martijndwars.webpush.HttpEce
 
toByteArray(int, int) - Static method in class nl.martijndwars.webpush.Utils
Create a byte array of the given length from the given integer.
TWO_BYTE_MAX - Static variable in class nl.martijndwars.webpush.HttpEce
 

U

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

V

valueOf(String) - Static method in enum nl.martijndwars.webpush.Encoding
Returns the enum constant of this type with the specified name.
values() - Static method in enum nl.martijndwars.webpush.Encoding
Returns an array containing the constants of this enum type, in the order they are declared.
vapidEnabled() - Method in class nl.martijndwars.webpush.PushService
Check if VAPID is enabled
verifyKeyPair(PrivateKey, PublicKey) - Static method in class nl.martijndwars.webpush.Utils
Verify that the private key belongs to the public key.

W

WEB_PUSH_INFO - Static variable in class nl.martijndwars.webpush.HttpEce
 
webpushSecret(String, ECPublicKey, byte[], int) - Method in class nl.martijndwars.webpush.HttpEce
Combine Shared and Authentication Secrets See https://tools.ietf.org/html/draft-ietf-webpush-encryption-09#section-3.3.
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 M N P R S T U V W 
Skip navigation links