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