blob: 7a5f46dab7444c5c1242e683e377d31cf882d53b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright Vespa.ai. 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 {
Objects.requireNonNull(username);
Objects.requireNonNull(password);
}
@Override
public String toString() {
return "registry credentials [username=" + username + ",password=<hidden>]";
}
}
|