UNPKG

diffusion

Version:

Diffusion JavaScript client

52 lines (51 loc) 2.15 kB
"use strict"; /** * @module Features.Security */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ValuesSessionPropertyValidationImpl = void 0; var session_property_validation_1 = require("./../../features/security/session-property-validation"); var security_1 = require("../../../features/security"); /** * Implementation of {@link ValuesSessionPropertyValidation} * * @inheritdoc */ var ValuesSessionPropertyValidationImpl = /** @class */ (function (_super) { __extends(ValuesSessionPropertyValidationImpl, _super); /** * Create a ValuesSessionPropertyValidationImpl instance * * @param values the permitted values */ function ValuesSessionPropertyValidationImpl(values) { var _this = _super.call(this, security_1.ValidationType.VALUES) || this; _this.values = values; return _this; } /** * Convert object to string * * @return a string representation of the ValuesSessionPropertyValidationImpl */ ValuesSessionPropertyValidationImpl.prototype.toString = function () { return "SessionPropertyValidation [type=" + this.type + ", values=" + this.values + "]"; }; return ValuesSessionPropertyValidationImpl; }(session_property_validation_1.SessionPropertyValidationImpl)); exports.ValuesSessionPropertyValidationImpl = ValuesSessionPropertyValidationImpl;