UNPKG

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

Version:

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

47 lines (42 loc) 1.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PasswordValidationMessage = void 0; var _ChannelMessage = require("../ChannelMessage"); /** * Copyright © 2024 Nevis Security AG. All rights reserved. */ /** * Holds the parameters of the validate password call. */ class PasswordValidationMessage extends _ChannelMessage.ChannelMessage { /** * The identifier of the operation. */ /** * The password to be validated. */ /** * Default constructor for {@link PasswordValidationMessage}. * * @param operationId the identifier of the operation. * @param password the password to be validated. */ constructor(operationId, password) { super(); this.operationId = operationId; this.password = password; } /** * Alternate constructor that creates an {@link PasswordValidationMessage} from a json. * * @param json contains the source for instance creation. * @returns the created instance. */ static fromJson(json) { return new PasswordValidationMessage(json.operationId, json.password.join('')); } } exports.PasswordValidationMessage = PasswordValidationMessage; //# sourceMappingURL=PasswordValidationMessage.js.map