NotificationObject

public final class NotificationObject implements Parcelable

An object returned if PingOne.processRemoteNotification completes successfully.

NotificationObject represents an authentication request via remote notification. It can be approved or denied.

Implements Parcelable so the developer will be able to pass it via intents.

Properties

Link copied to clipboard
private final JsonObject applicationContext

Returns application context as JSON object. Internal use only.

Link copied to clipboard
private final String clientContext

Returns client-context String object or null if no context was passed by the server.

Link copied to clipboard
private final Boolean isCancelAuth

Checks if the push type is cancel authentication.

Link copied to clipboard
private final Boolean isTest

Checks if the push was sent for testing purpose.

Link copied to clipboard

Returns number matching options int array object or null.

Link copied to clipboard
private final String numberMatchingType

Returns number matching type String object or null.

Link copied to clipboard
private final String pushType
Link copied to clipboard
private final Integer timeoutDuration

The maximum time duration allowed from getting push till user response.

Functions

Link copied to clipboard
public final Unit approve(Context context, String authenticationMethod, Integer numberMatchingPickedValue, PingOne.PingOneMobileConfirmationCallback callback)

Approves the current mobile push authentication request.

@Deprecated(message = "Use approve(Context, String?, Int?, PingOne.PingOneMobileConfirmationCallback) instead.", replaceWith = @ReplaceWith(expression = "approve(context, authenticationMethod, numberMatchingPickedValue, callback)"))
public final Unit approve(Context context, String authenticationMethod, Integer numberMatchingPickedValue, PingOne.PingOneSDKCallback callback)

Approves a mobile push authentication request.

Link copied to clipboard
public final JsonObject approveSuspend(Context context, String authenticationMethod, Integer numberMatchingPickedValue)

Approves the current mobile push authentication request (suspend version).

Link copied to clipboard
@Deprecated(message = "Use deny(Context, DenyReason, PingOne.PingOneSDKCallback) instead.", replaceWith = @ReplaceWith(expression = "deny(context, denyReason, callback)"))
public final Unit deny(Context context, PingOne.PingOneSDKCallback callback)

Denies authentication.

public final Unit deny(Context context, DenyReason denyReason, PingOne.PingOneSDKCallback callback)

Deny the authentication with a reason specified in DenyReason.

Link copied to clipboard
public final Unit denySuspend(Context context, DenyReason denyReason)

Deny the authentication with a reason specified in DenyReason.

Link copied to clipboard
public final JsonObject getApplicationContext()
Link copied to clipboard
public final String getClientContext()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final String getPushType()
Link copied to clipboard
public final Integer getTimeoutDuration()
Link copied to clipboard
public final Boolean isCancelAuth()
Link copied to clipboard
public final Boolean isTest()