AuthenticationObject

public final class AuthenticationObject implements Parcelable

An object returned when PingOne.authenticate() flow completes successfully.

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

Constructors

Link copied to clipboard
public AuthenticationObject AuthenticationObject(String requestId, String authCode, String clientContext, String status, String needsApproval, JsonArray users, String geoCode)

Properties

Link copied to clipboard
private String authCode
Link copied to clipboard

Client context - a custom String designed for passing any data as a String from server to end-user

Link copied to clipboard

Gets the needsApproval object property. Possible values:

Link copied to clipboard
private String requestId
Link copied to clipboard
private String status

Gets the status String value returned from a server when user calls an authenticate API method.

Link copied to clipboard
private JsonArray users

Gets an array of the users paired to the device.

Functions

Link copied to clipboard
public final Unit approve(Context context, String userId, PingOne.PingOneAuthenticationStatusCallback callback)

Approves authentication.

Link copied to clipboard
public final String approveSuspend(Context context, String userId)

Approves authentication (suspend version).

Link copied to clipboard
public final Unit deny(Context context, String userId, PingOne.PingOneAuthenticationStatusCallback callback)

Denies authentication.

Link copied to clipboard
public final String denySuspend(Context context, String userId)

Denies authentication (suspend version).

Link copied to clipboard
public final String getAuthCode()
Link copied to clipboard
public final String getClientContext()
Link copied to clipboard
public final String getNeedsApproval()
Link copied to clipboard
public final String getRequestId()
Link copied to clipboard
public final String getStatus()
Link copied to clipboard
public final JsonArray getUsers()
Link copied to clipboard
public final Unit setAuthCode(String value)
Link copied to clipboard
public final Unit setClientContext(String value)
Link copied to clipboard
public final Unit setNeedsApproval(String value)
Link copied to clipboard
public final Unit setRequestId(String value)
Link copied to clipboard
public final Unit setStatus(String value)
Link copied to clipboard
public final Unit setUsers(JsonArray value)