public static class PushNotification.PushNotificationBuilder
extends java.lang.Object
| Constructor and Description |
|---|
PushNotificationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected PushNotification |
build()
Build the notification.
|
PushNotification.PushNotificationBuilder |
setAmlbCookie(java.lang.String amlbCookie)
Set the he AM load balance cookie with this notification.
|
PushNotification.PushNotificationBuilder |
setApproved(boolean approved)
Sets whether the authentication the notification is related to was approved.
|
PushNotification.PushNotificationBuilder |
setChallenge(java.lang.String challenge)
Set the challenge that was sent with this notification.
|
PushNotification.PushNotificationBuilder |
setMechanismUID(java.lang.String mechanismUID)
Sets the mechanism unique Id.
|
PushNotification.PushNotificationBuilder |
setMessageId(java.lang.String messageId)
Sets the message id that was received with this notification.
|
PushNotification.PushNotificationBuilder |
setPending(boolean pending)
Sets whether the authentication the notification is related to has been handled.
|
PushNotification.PushNotificationBuilder |
setTimeAdded(java.util.Calendar timeAdded)
Sets the date that the notification was received.
|
PushNotification.PushNotificationBuilder |
setTimeExpired(java.util.Calendar timeExpired)
Sets the date that the notification will automatically fail.
|
PushNotification.PushNotificationBuilder |
setTtl(long ttl)
Sets the time to live for the notification.
|
public PushNotification.PushNotificationBuilder setMechanismUID(java.lang.String mechanismUID)
mechanismUID - the mechanism unique Id.public PushNotification.PushNotificationBuilder setMessageId(java.lang.String messageId)
messageId - The messageId that was received.public PushNotification.PushNotificationBuilder setChallenge(java.lang.String challenge)
challenge - The base64 encoded challenge.public PushNotification.PushNotificationBuilder setAmlbCookie(java.lang.String amlbCookie)
amlbCookie - the load balance cookie.public PushNotification.PushNotificationBuilder setTimeAdded(java.util.Calendar timeAdded)
timeAdded - The date received in UTC.public PushNotification.PushNotificationBuilder setTimeExpired(java.util.Calendar timeExpired)
timeExpired - The expiry date.public PushNotification.PushNotificationBuilder setTtl(long ttl)
ttl - The expiry date.public PushNotification.PushNotificationBuilder setApproved(boolean approved)
approved - True if the authentication was approved, false otherwise.public PushNotification.PushNotificationBuilder setPending(boolean pending)
pending - True if the authentication has not been handled, false otherwise.protected PushNotification build() throws InvalidNotificationException
InvalidNotificationException - if timeAdded or mechanismUID are not provided