Authentication Service
interface AuthenticationService
Interface for authentication operations.
Functions
Link copied to clipboard
abstract suspend fun loginWithPassword(clientIdentifier: String, brandIdentity: String, request: PasswordTokenRequest, scaDetails: ScaAuthenticationEventRequest? = null): Token
Obtain an access token by providing username and password.
Link copied to clipboard
open fun loginWithPasswordAsync(clientIdentifier: String, brandIdentity: String, request: PasswordTokenRequest, scaDetails: ScaAuthenticationEventRequest?, cancellationSignal: CancellationSignal?, callback: WalletCallback<Token>)
Asynchronously obtains an access token by providing username and password.
Link copied to clipboard
abstract suspend fun loginWithPin(clientIdentifier: String, brandIdentity: String, request: PinTokenRequest, scaDetails: ScaAuthenticationEventRequest? = null): Token
Obtain an access token by providing username and PIN.
Link copied to clipboard
open fun loginWithPinAsync(clientIdentifier: String, brandIdentity: String, request: PinTokenRequest, scaDetails: ScaAuthenticationEventRequest?, cancellationSignal: CancellationSignal?, callback: WalletCallback<Token>)
Asynchronously obtain an access token by providing username and PIN.
Link copied to clipboard
abstract suspend fun sendScaChallenge(eventId: String, request: ScaAuthenticationEventChallengeEmbeddedHybridRequest): ScaAuthenticationEventChallengeEmbeddedHybridResponse
Send a SCA challenge as part of the ongoing Embedded or Hybrid SCA process.
Link copied to clipboard
open fun sendScaChallengeAsync(eventId: String, request: ScaAuthenticationEventChallengeEmbeddedHybridRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<ScaAuthenticationEventChallengeEmbeddedHybridResponse>)
Asynchronously send a SCA challenge as part of the ongoing Embedded or Hybrid SCA process.
Link copied to clipboard
abstract suspend fun submitScaAttempt(eventId: String, request: ScaAuthenticationEventAttemptEmbeddedHybridRequest): ScaAuthenticationEventAttemptEmbeddedHybridResponse
Submit an Embedded or Hybrid authentication attempt for a SCA event.
Link copied to clipboard
open fun submitScaAttemptAsync(eventId: String, request: ScaAuthenticationEventAttemptEmbeddedHybridRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<ScaAuthenticationEventAttemptEmbeddedHybridResponse>)
Asynchronously submit an Embedded or Hybrid authentication attempt for a SCA event.