public class PushNotification
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PushNotification.PushNotificationBuilder
Builder class responsible for producing Notifications.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(FRAListener<java.lang.Void> listener)
Accepts the push authentication request.
|
static PushNotification.PushNotificationBuilder |
builder()
Returns a builder for creating a PushNotification.
|
int |
compareTo(PushNotification another) |
void |
deny(FRAListener<java.lang.Void> listener)
Deny the push authentication request.
|
static PushNotification |
deserialize(java.lang.String jsonString)
Deserializes the specified Json into an object of the
PushNotification object. |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAmlbCookie()
Get load balance cookie from OpenAM
|
java.lang.String |
getChallenge()
Get challenge from message payload
|
java.lang.String |
getId()
Gets the unique identifier for the PushNotification.
|
java.lang.String |
getMechanismUID()
Get the mechanism Id that this notification was intended for.
|
java.lang.String |
getMessageId()
Get the message Id of this notification
|
java.util.Calendar |
getTimeAdded()
Get the time that this notification was received.
|
java.util.Calendar |
getTimeExpired()
Get the time that the notification will or did expire.
|
long |
getTtl()
Get time-to-live value from message payload
|
int |
hashCode() |
boolean |
isApproved()
Determine whether the authentication the notification is related to succeeded.
|
boolean |
isExpired()
Determine if the notification has expired.
|
boolean |
isPending()
Determines if the PushNotification has been interacted with by the user.
|
boolean |
matches(PushNotification other)
Returns true if the two objects would conflict if added to a storage system.
|
java.lang.String |
toJson()
Creates a JSON string representation of
T object. |
public java.lang.String getId()
public java.lang.String getMechanismUID()
public java.lang.String getMessageId()
public java.lang.String getChallenge()
public java.lang.String getAmlbCookie()
public long getTtl()
public java.util.Calendar getTimeAdded()
public java.util.Calendar getTimeExpired()
public boolean isApproved()
public boolean isPending()
public final boolean isExpired()
public java.lang.String toJson()
T object. Sensitive information are not
exposed.public final void accept(FRAListener<java.lang.Void> listener)
listener - Listener for receiving the HTTP call response code.public final void deny(FRAListener<java.lang.Void> listener)
listener - Listener for receiving the HTTP call response code.public static PushNotification deserialize(java.lang.String jsonString)
PushNotification object.jsonString - the json string representing the object to be deserializedPushNotification object from the string. Returns null if jsonString is null
or if jsonString is empty.public boolean matches(PushNotification other)
other - The object to compare.public int compareTo(PushNotification another)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static PushNotification.PushNotificationBuilder builder()