/* * Copyright © 2023-2024 Nevis Security AG. All rights reserved. */ package ch.nevis.mobile.authentication.sdk.react import ch.nevis.mobile.authentication.sdk.react.methods.AuthCloudApiRegisterMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.AuthenticationMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.DeregistrationMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.DeviceInformationChangeMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.DeviceInformationCheckMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.DeviceInformationSyncMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.LocalAccountsMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.LocalAuthenticatorsMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.LocalDeleteAuthenticatorMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.LocalDeviceInformationMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.OobAuthenticationMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.OobOperationMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.OobPayloadDecodeMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.OobRegistrationMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.PasswordChangeMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.PendingOobOperationsMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.PinChangeMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.RegistrationMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.AccountUsernameMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.AuthenticatorAaidMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.CancelMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.IsPolicyCompliantMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.ListenForOsCredentialsMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PasswordEnrollMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PasswordValidatedForEnrollmentMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PasswordValidatedForPasswordChangeMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PasswordVerifyMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PasswordsChangeMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PauseListeningMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PinEnrollMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PinValidatedForEnrollmentMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PinValidatedForPinChangeMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PinVerifyMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.PinsChangeMethodHandler import ch.nevis.mobile.authentication.sdk.react.methods.userInteraction.ResumeListeningMethodHandler import ch.nevis.mobile.authentication.sdk.react.model.ReactMethodName import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.AccountUsernameMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.AuthCloudApiRegisterMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.AuthenticationMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.AuthenticatorAaidMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.CancelMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.DeregistrationMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.DeviceInformationChangeMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.DeviceInformationCheckMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.DeviceInformationSyncMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.IsPolicyCompliantMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.ListenForOsCredentialsMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.LocalAccountsMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.LocalAuthenticatorsMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.LocalDeleteAuthenticatorMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.LocalDeviceInformationMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.OobAuthenticationMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.OobOperationMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.OobPayloadDecodeMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.OobRegistrationMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PasswordChangeMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PasswordEnrollMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PasswordValidatedForEnrollmentMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PasswordValidatedForPasswordChangeMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PasswordVerifyMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PasswordsChangeMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PauseListeningMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PendingOobOperationsMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PinChangeMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PinEnrollMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PinValidatedForEnrollmentMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PinValidatedForPinChangeMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PinVerifyMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.PinsChangeMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.RegistrationMessage import ch.nevis.mobile.authentication.sdk.react.model.message.incoming.ResumeListeningMessage object MethodHandlerConfiguration { val methodInfoMap = mapOf( ReactMethodName.ACCOUNT_USERNAME.methodName to Pair( AccountUsernameMethodHandler(), AccountUsernameMessage.serializer() ), ReactMethodName.AUTH_CLOUD_API_REGISTER.methodName to Pair( AuthCloudApiRegisterMethodHandler(), AuthCloudApiRegisterMessage.serializer() ), ReactMethodName.AUTHENTICATE.methodName to Pair( AuthenticationMethodHandler(), AuthenticationMessage.serializer() ), ReactMethodName.AUTHENTICATOR_AAID.methodName to Pair( AuthenticatorAaidMethodHandler(), AuthenticatorAaidMessage.serializer() ), ReactMethodName.CANCEL.methodName to Pair( CancelMethodHandler(), CancelMessage.serializer() ), ReactMethodName.CANCEL_AUTHENTICATION.methodName to Pair( CancelMethodHandler(), CancelMessage.serializer() ), ReactMethodName.DEREGISTER.methodName to Pair( DeregistrationMethodHandler(), DeregistrationMessage.serializer() ), ReactMethodName.DEVICE_INFORMATION_CHANGE.methodName to Pair( DeviceInformationChangeMethodHandler(), DeviceInformationChangeMessage.serializer() ), ReactMethodName.DEVICE_INFORMATION_CHECK.methodName to Pair( DeviceInformationCheckMethodHandler(), DeviceInformationCheckMessage.serializer() ), ReactMethodName.DEVICE_INFORMATION_SYNC.methodName to Pair( DeviceInformationSyncMethodHandler(), DeviceInformationSyncMessage.serializer() ), ReactMethodName.PENDING_OOB_OPERATIONS.methodName to Pair( PendingOobOperationsMethodHandler(), PendingOobOperationsMessage.serializer() ), ReactMethodName.IS_POLICY_COMPLIANT.methodName to Pair( IsPolicyCompliantMethodHandler(), IsPolicyCompliantMessage.serializer() ), ReactMethodName.LISTEN_FOR_OS_CREDENTIALS.methodName to Pair( ListenForOsCredentialsMethodHandler(), ListenForOsCredentialsMessage.serializer() ), ReactMethodName.LOCAL_ACCOUNTS.methodName to Pair( LocalAccountsMethodHandler(), LocalAccountsMessage.serializer() ), ReactMethodName.LOCAL_AUTHENTICATORS.methodName to Pair( LocalAuthenticatorsMethodHandler(), LocalAuthenticatorsMessage.serializer() ), ReactMethodName.LOCAL_DELETE_AUTHENTICATOR.methodName to Pair( LocalDeleteAuthenticatorMethodHandler(), LocalDeleteAuthenticatorMessage.serializer() ), ReactMethodName.LOCAL_DEVICE_INFORMATION.methodName to Pair( LocalDeviceInformationMethodHandler(), LocalDeviceInformationMessage.serializer() ), ReactMethodName.OOB_AUTHENTICATE.methodName to Pair( OobAuthenticationMethodHandler(), OobAuthenticationMessage.serializer() ), ReactMethodName.OOB_PAYLOAD_DECODE.methodName to Pair( OobPayloadDecodeMethodHandler(), OobPayloadDecodeMessage.serializer() ), ReactMethodName.OOB_OPERATION.methodName to Pair( OobOperationMethodHandler(), OobOperationMessage.serializer() ), ReactMethodName.OOB_REGISTER.methodName to Pair( OobRegistrationMethodHandler(), OobRegistrationMessage.serializer() ), ReactMethodName.PAUSE_LISTENING.methodName to Pair( PauseListeningMethodHandler(), PauseListeningMessage.serializer() ), ReactMethodName.PIN_CHANGE.methodName to Pair( PinChangeMethodHandler(), PinChangeMessage.serializer() ), ReactMethodName.PIN_ENROLL.methodName to Pair( PinEnrollMethodHandler(), PinEnrollMessage.serializer() ), ReactMethodName.PINS_CHANGE.methodName to Pair( PinsChangeMethodHandler(), PinsChangeMessage.serializer() ), ReactMethodName.PIN_VALIDATED_FOR_ENROLLMENT.methodName to Pair( PinValidatedForEnrollmentMethodHandler(), PinValidatedForEnrollmentMessage.serializer() ), ReactMethodName.PIN_VALIDATED_FOR_PIN_CHANGE.methodName to Pair( PinValidatedForPinChangeMethodHandler(), PinValidatedForPinChangeMessage.serializer() ), ReactMethodName.PIN_VERIFY.methodName to Pair( PinVerifyMethodHandler(), PinVerifyMessage.serializer() ), ReactMethodName.PASSWORD_CHANGE.methodName to Pair( PasswordChangeMethodHandler(), PasswordChangeMessage.serializer() ), ReactMethodName.PASSWORD_ENROLL.methodName to Pair( PasswordEnrollMethodHandler(), PasswordEnrollMessage.serializer() ), ReactMethodName.PASSWORDS_CHANGE.methodName to Pair( PasswordsChangeMethodHandler(), PasswordsChangeMessage.serializer() ), ReactMethodName.PASSWORD_VALIDATED_FOR_ENROLLMENT.methodName to Pair( PasswordValidatedForEnrollmentMethodHandler(), PasswordValidatedForEnrollmentMessage.serializer() ), ReactMethodName.PASSWORD_VALIDATED_FOR_PASSWORD_CHANGE.methodName to Pair( PasswordValidatedForPasswordChangeMethodHandler(), PasswordValidatedForPasswordChangeMessage.serializer() ), ReactMethodName.PASSWORD_VERIFY.methodName to Pair( PasswordVerifyMethodHandler(), PasswordVerifyMessage.serializer() ), ReactMethodName.REGISTER.methodName to Pair( RegistrationMethodHandler(), RegistrationMessage.serializer() ), ReactMethodName.RESUME_LISTENING.methodName to Pair( ResumeListeningMethodHandler(), ResumeListeningMessage.serializer() ), ) }