/**
 * Copyright © 2024 Nevis Security AG. All rights reserved.
 */

import { ChannelMessage } from '../ChannelMessage';

/**
 * Holds the parameters of the password enrollment call.
 */
export class PasswordEnrollMessage extends ChannelMessage {
	/**
	 * The identifier of the operation.
	 */
	operationId: string;

	/**
	 * The password.
	 */
	password: string[];

	/**
	 * Default constructor for {@link PasswordEnrollMessage}.
	 *
	 * @param operationId the identifier of the operation.
	 * @param password the password.
	 */
	constructor(operationId: string, password: string) {
		super();

		this.operationId = operationId;
		this.password = Array.from(password);
	}
}
