// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.container;

import java.util.Objects;

/**
 * Credentials for a container registry server.
 *
 * @author mpolden
 */
public record RegistryCredentials(String username, String password) {

    public static final RegistryCredentials none = new RegistryCredentials("", "");

    public RegistryCredentials(String username, String password) {
        this.username = Objects.requireNonNull(username);
        this.password = Objects.requireNonNull(password);
    }

    @Override
    public String toString() {
        return "registry credentials [username=" + username + ",password=<hidden>]";
    }

}

@@ -447,68 +447,18 @@
 ials
-(String username, String password) %7B%0A        this.username =
+ %7B%0A       
  Obj
@@ -499,24 +499,8 @@
     
- this.password =
  Obj

Simplify record constructor