1 | ;
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports["default"] = void 0;
|
5 |
|
6 | /*!
|
7 | * Copyright 2016 Amazon.com,
|
8 | * Inc. or its affiliates. All Rights Reserved.
|
9 | *
|
10 | * Licensed under the Amazon Software License (the "License").
|
11 | * You may not use this file except in compliance with the
|
12 | * License. A copy of the License is located at
|
13 | *
|
14 | * http://aws.amazon.com/asl/
|
15 | *
|
16 | * or in the "license" file accompanying this file. This file is
|
17 | * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
18 | * CONDITIONS OF ANY KIND, express or implied. See the License
|
19 | * for the specific language governing permissions and
|
20 | * limitations under the License.
|
21 | */
|
22 |
|
23 | /** @class */
|
24 | var AuthenticationDetails = /*#__PURE__*/function () {
|
25 | /**
|
26 | * Constructs a new AuthenticationDetails object
|
27 | * @param {object=} data Creation options.
|
28 | * @param {string} data.Username User being authenticated.
|
29 | * @param {string} data.Password Plain-text password to authenticate with.
|
30 | * @param {(AttributeArg[])?} data.ValidationData Application extra metadata.
|
31 | * @param {(AttributeArg[])?} data.AuthParamaters Authentication paramaters for custom auth.
|
32 | */
|
33 | function AuthenticationDetails(data) {
|
34 | var _ref = data || {},
|
35 | ValidationData = _ref.ValidationData,
|
36 | Username = _ref.Username,
|
37 | Password = _ref.Password,
|
38 | AuthParameters = _ref.AuthParameters,
|
39 | ClientMetadata = _ref.ClientMetadata;
|
40 |
|
41 | this.validationData = ValidationData || {};
|
42 | this.authParameters = AuthParameters || {};
|
43 | this.clientMetadata = ClientMetadata || {};
|
44 | this.username = Username;
|
45 | this.password = Password;
|
46 | }
|
47 | /**
|
48 | * @returns {string} the record's username
|
49 | */
|
50 |
|
51 |
|
52 | var _proto = AuthenticationDetails.prototype;
|
53 |
|
54 | _proto.getUsername = function getUsername() {
|
55 | return this.username;
|
56 | }
|
57 | /**
|
58 | * @returns {string} the record's password
|
59 | */
|
60 | ;
|
61 |
|
62 | _proto.getPassword = function getPassword() {
|
63 | return this.password;
|
64 | }
|
65 | /**
|
66 | * @returns {Array} the record's validationData
|
67 | */
|
68 | ;
|
69 |
|
70 | _proto.getValidationData = function getValidationData() {
|
71 | return this.validationData;
|
72 | }
|
73 | /**
|
74 | * @returns {Array} the record's authParameters
|
75 | */
|
76 | ;
|
77 |
|
78 | _proto.getAuthParameters = function getAuthParameters() {
|
79 | return this.authParameters;
|
80 | }
|
81 | /**
|
82 | * @returns {ClientMetadata} the clientMetadata for a Lambda trigger
|
83 | */
|
84 | ;
|
85 |
|
86 | _proto.getClientMetadata = function getClientMetadata() {
|
87 | return this.clientMetadata;
|
88 | };
|
89 |
|
90 | return AuthenticationDetails;
|
91 | }();
|
92 |
|
93 | exports["default"] = AuthenticationDetails; |
\ | No newline at end of file |