PingAMPushResponder

class PingAMPushResponder(httpClient: HttpClient, logger: Logger = Logger.Companion.logger)

PingAM implementation for handling network operations related to Push authentication. This class is responsible for making HTTP requests to the PingAM servers.

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, logger: Logger = Logger.Companion.logger)

Functions

Link copied to clipboard
suspend fun authenticate(credential: PushCredential, notification: PushNotification, approve: Boolean, challengeResponse: String?): Boolean

Send an authentication response (approve or deny) for a notification.

Link copied to clipboard
suspend fun register(credential: PushCredential, params: Map<String, Any>): Boolean

Register a push credential on the server.

Link copied to clipboard
suspend fun updateDeviceToken(credential: PushCredential, deviceToken: String, deviceName: String): Boolean

Update a device token on the server.