Package com.iizix.push.vapid
Class Notification.NotificationBuilder
- java.lang.Object
- com.iizix.push.vapid.Notification.NotificationBuilder
- Enclosing class:
- Notification
public static class Notification.NotificationBuilder extends java.lang.Object
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Notification
build()
Notification.NotificationBuilder
endpoint(java.lang.String endpoint)
Notification.NotificationBuilder
payload(byte[] payload)
Notification.NotificationBuilder
payload(java.lang.String payload)
Notification.NotificationBuilder
topic(java.lang.String topic)
Notification.NotificationBuilder
ttl(int ttl)
Notification.NotificationBuilder
urgency(Urgency urgency)
Notification.NotificationBuilder
userAuth(byte[] userAuth)
Notification.NotificationBuilder
userAuth(java.lang.String userAuth)
Notification.NotificationBuilder
userPublicKey(byte[] publicKey)
Notification.NotificationBuilder
userPublicKey(java.lang.String publicKey)
Notification.NotificationBuilder
userPublicKey(java.security.PublicKey publicKey)
Method Detail
build
public Notification build()
endpoint
public Notification.NotificationBuilder endpoint(java.lang.String endpoint)
userPublicKey
public Notification.NotificationBuilder userPublicKey(java.security.PublicKey publicKey)
userPublicKey
public Notification.NotificationBuilder userPublicKey(java.lang.String publicKey) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.spec.InvalidKeySpecException
- Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
java.security.spec.InvalidKeySpecException
userPublicKey
public Notification.NotificationBuilder userPublicKey(byte[] publicKey) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.spec.InvalidKeySpecException
- Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
java.security.spec.InvalidKeySpecException
userAuth
public Notification.NotificationBuilder userAuth(java.lang.String userAuth)
userAuth
public Notification.NotificationBuilder userAuth(byte[] userAuth)
payload
public Notification.NotificationBuilder payload(byte[] payload)
payload
public Notification.NotificationBuilder payload(java.lang.String payload)
ttl
public Notification.NotificationBuilder ttl(int ttl)
urgency
public Notification.NotificationBuilder urgency(Urgency urgency)
topic
public Notification.NotificationBuilder topic(java.lang.String topic)