public class PushAsyncService extends AbstractPushService<PushAsyncService>
SERVER_KEY_CURVE, SERVER_KEY_ID| Constructor and Description |
|---|
PushAsyncService() |
PushAsyncService(java.security.KeyPair keyPair) |
PushAsyncService(java.security.KeyPair keyPair,
java.lang.String subject) |
PushAsyncService(java.lang.String gcmApiKey) |
PushAsyncService(java.lang.String publicKey,
java.lang.String privateKey) |
PushAsyncService(java.lang.String publicKey,
java.lang.String privateKey,
java.lang.String subject) |
| Modifier and Type | Method and Description |
|---|---|
org.asynchttpclient.BoundRequestBuilder |
preparePost(Notification notification,
Encoding encoding)
Prepare a POST request for AHC.
|
java.util.concurrent.CompletableFuture<org.asynchttpclient.Response> |
send(Notification notification) |
java.util.concurrent.CompletableFuture<org.asynchttpclient.Response> |
send(Notification notification,
Encoding encoding)
Send a notification asynchronously.
|
encrypt, getGcmApiKey, getKeyPair, getPrivateKey, getPublicKey, getSubject, prepareRequest, setGcmApiKey, setKeyPair, setPrivateKey, setPrivateKey, setPublicKey, setPublicKey, setSubject, vapidEnabledpublic PushAsyncService()
public PushAsyncService(java.lang.String gcmApiKey)
public PushAsyncService(java.security.KeyPair keyPair)
public PushAsyncService(java.security.KeyPair keyPair,
java.lang.String subject)
public PushAsyncService(java.lang.String publicKey,
java.lang.String privateKey)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic PushAsyncService(java.lang.String publicKey,
java.lang.String privateKey,
java.lang.String subject)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic java.util.concurrent.CompletableFuture<org.asynchttpclient.Response> send(Notification notification, Encoding encoding) throws java.security.GeneralSecurityException, java.io.IOException, org.jose4j.lang.JoseException
notification - encoding - java.security.GeneralSecurityExceptionjava.io.IOExceptionorg.jose4j.lang.JoseExceptionpublic java.util.concurrent.CompletableFuture<org.asynchttpclient.Response> send(Notification notification) throws java.security.GeneralSecurityException, java.io.IOException, org.jose4j.lang.JoseException
java.security.GeneralSecurityExceptionjava.io.IOExceptionorg.jose4j.lang.JoseExceptionpublic org.asynchttpclient.BoundRequestBuilder preparePost(Notification notification, Encoding encoding) throws java.security.GeneralSecurityException, java.io.IOException, org.jose4j.lang.JoseException
notification - encoding - java.security.GeneralSecurityExceptionjava.io.IOExceptionorg.jose4j.lang.JoseException