File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
src/main/groovy/io/seqera/wave/auth Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Wave, containers provisioning service
3+ * Copyright (c) 2023-2024, Seqera Labs
4+ *
5+ * This program is free software: you can redistribute it and/or modify
6+ * it under the terms of the GNU Affero General Public License as published by
7+ * the Free Software Foundation, either version 3 of the License, or
8+ * (at your option) any later version.
9+ *
10+ * This program is distributed in the hope that it will be useful,
11+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+ * GNU Affero General Public License for more details.
14+ *
15+ * You should have received a copy of the GNU Affero General Public License
16+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
17+ */
18+
19+ package io.seqera.wave.auth
20+
21+ import groovy.transform.Canonical
22+ import groovy.transform.CompileStatic
23+ import io.seqera.wave.util.StringUtils
24+
25+ /**
26+ * Simple implementation of {@link RegistryCredentials} holding a username and password pair.
27+ *
28+ * @author Munish Chouhan
29+ */
30+ @Canonical
31+ @CompileStatic
32+ class BasicRegistryCredentials implements RegistryCredentials {
33+
34+ final String username
35+ final String password
36+
37+ @Override
38+ String toString () {
39+ return " BasicRegistryCredentials[username=${ username} ; password=${ StringUtils.redact(password)} ]"
40+ }
41+ }
You can’t perform that action at this time.
0 commit comments