UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

59 lines (51 loc) 1.67 kB
"use strict"; /** * Copyright © 2023-2024 Nevis Security AG. All rights reserved. */ import { OperationMessage } from './OperationMessage'; import { PinPolicyMessage } from './PinPolicyMessage'; /** * Holds the parameters of the PIN change operation call. */ export class PinChangeMessage extends OperationMessage { /** * The identifier of the operation. */ /** * Flag that tells whether the PIN changer is provided. */ /** * The username. */ /** * Specifies the PIN policy to be used. */ /** * Flag that tells whether the success callback is provided. */ /** * Flag that tells whether the error callback is provided. */ /** * Default constructor for {@link PinChangeMessage}. * * @param operationId the identifier of the operation. * @param pinChangerProvided flag that tells whether the PIN changer is provided. * @param onSuccessProvided flag that tells whether the success callback is provided. * @param onErrorProvided flag that tells whether the error callback is provided. * @param username the username. * @param pinPolicy specifies the PIN policy to be used. */ constructor(operationId, pinChangerProvided, onSuccessProvided, onErrorProvided, username, pinPolicy) { super(); this.operationId = operationId; this.username = username; this.pinChangerProvided = pinChangerProvided; this.onSuccessProvided = onSuccessProvided; this.onErrorProvided = onErrorProvided; if (pinPolicy) { this.pinPolicyMessage = new PinPolicyMessage(operationId, pinPolicy.minLength, pinPolicy.maxLength); } } } //# sourceMappingURL=PinChangeMessage.js.map