Skip to content

Commit

Permalink
Make simple credentials back compatible (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
srknzl authored Jan 12, 2022
1 parent 5c07203 commit e695651
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/
'use strict';
const TestUtil = require('../../../../TestUtil');

class SimpleCredentials {
constructor(username, password) {
Expand All @@ -24,13 +25,13 @@ class SimpleCredentials {
}

readData(input) {
this.username = input.readString();
this.password = input.readString();
this.username = TestUtil.readStringFromInput(input);
this.password = TestUtil.readStringFromInput(input);
}

writeData(output) {
output.writeString(this.username);
output.writeString(this.password);
TestUtil.writeStringToOutput(output, this.username);
TestUtil.writeStringToOutput(output, this.password);
}
}

Expand Down

0 comments on commit e695651

Please sign in to comment.