UNPKG

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

Version:

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

64 lines (56 loc) 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PinChangeMessage = void 0; var _OperationMessage = require("./OperationMessage"); var _PinPolicyMessage = require("./PinPolicyMessage"); /** * Copyright © 2023-2024 Nevis Security AG. All rights reserved. */ /** * Holds the parameters of the PIN change operation call. */ class PinChangeMessage extends _OperationMessage.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.PinPolicyMessage(operationId, pinPolicy.minLength, pinPolicy.maxLength); } } } exports.PinChangeMessage = PinChangeMessage; //# sourceMappingURL=PinChangeMessage.js.map