UNPKG

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

Version:

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

43 lines (37 loc) 1.05 kB
"use strict"; /** * Copyright © 2024 Nevis Security AG. All rights reserved. */ import { ChannelMessage } from '../ChannelMessage'; /** * Holds the parameters of the validate password call. */ export class PasswordValidationMessage extends 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('')); } } //# sourceMappingURL=PasswordValidationMessage.js.map