PushNotification

PushNotification is a model class which represents a message that was received from an external source. A notification could be raised against any mechanism. Currently used by Push mechanism.

Constructors

Link copied to clipboard
private constructor(mechanismUID: String, messageId: String, message: String, challenge: String, amlbCookie: String, timeAdded: Calendar, timeExpired: Calendar, ttl: Long, approved: Boolean, pending: Boolean, customPayload: String, numbersChallenge: String, contextInfo: String, pushType: PushType)
Creates the PushNotification object with given data

Types

Link copied to clipboard
Builder class responsible for producing Notifications.

Properties

Link copied to clipboard
The AM load balance cookie
Link copied to clipboard
private open var approved: Boolean
Determines if the PushNotification has been approved by the user.
Link copied to clipboard
Base64 challenge that was sent with this notification
Link copied to clipboard
The context information to this notification.
Link copied to clipboard
The JSON String containing the custom attributes added to this notification
Link copied to clipboard
val id: String
Unique identifier for PushNotification object associated with the mechanism
Link copied to clipboard
Unique identifier of the Mechanism associated with this PushNotification
Link copied to clipboard
Message that was received with this notification
Link copied to clipboard
Message Identifier that was received with this notification
Link copied to clipboard
The numbers used in the push challenge
Link copied to clipboard
private open var pending: Boolean
Determines if the PushNotification has been interacted with the user.
Link copied to clipboard
private open var pushMechanism: PushMechanism
The mechanism associated with this notification
Link copied to clipboard
The type of push notification
Link copied to clipboard
private val TAG: String
Link copied to clipboard
Date that the notification was received
Link copied to clipboard
Date that the notification has expired
Link copied to clipboard
val ttl: Long
Time to live for the notification

Functions

Link copied to clipboard
fun accept(@NonNull listener: FRAListener<Void>)
Accepts the push authentication request.
fun accept(@NonNull challengeResponse: String, @NonNull listener: FRAListener<Void>)
Accepts the push notification request with the challenge response.
fun accept(title: String, subtitle: String, allowDeviceCredentials: Boolean, @NonNull activity: FragmentActivity, @NonNull listener: FRAListener<Void>)
Accepts the push notification request with Biometric Authentication.
Link copied to clipboard
Returns a builder for creating a PushNotification.
Link copied to clipboard
open fun compareTo(another: PushNotification): Int
Link copied to clipboard
fun deny(@NonNull listener: FRAListener<Void>)
Deny any type of push authentication request.
Link copied to clipboard
open fun deserialize(jsonString: String): PushNotification
Deserializes the specified Json into an object of the PushNotification object.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getDate(milliSeconds: Long): Calendar
Return date from milliseconds.
Link copied to clipboard
Get numbers used for push challenge
Link copied to clipboard
Gets the mechanism object associated with the notification.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isApproved(): Boolean
Determine whether the authentication the notification is related to succeeded.
Link copied to clipboard
Determine if the notification has expired.
Link copied to clipboard
open fun isPending(): Boolean
Determines if the PushNotification has been interacted with by the user.
Link copied to clipboard
open fun matches(other: PushNotification): Boolean
Returns true if the two objects would conflict if added to a storage system.
Link copied to clipboard
open fun performAcceptDenyAsync(approved: Boolean, listener: FRAListener<Void>)
Link copied to clipboard
open fun serialize(): String
Serializes the T object into its equivalent Json representation.
Link copied to clipboard
open fun setApproved(approved: Boolean)
Set if the authentication succeeded.
Link copied to clipboard
open fun setPending(pending: Boolean)
Set if the authentication is pending.
Link copied to clipboard
open fun setPushMechanism(mechanism: Mechanism)
Sets the mechanism object associated with the notification.
Link copied to clipboard
open fun toJson(): String
Creates a JSON string representation of T object.