*/
package org.opendaylight.netconf.keystore.legacy;
+import java.security.KeyPair;
import java.security.cert.X509Certificate;
import java.util.Map;
import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault
public record NetconfKeystore(
Map<String, CertifiedPrivateKey> privateKeys,
- Map<String, X509Certificate> trustedCertificates) implements Immutable {
- public static final NetconfKeystore EMPTY = new NetconfKeystore(Map.of(), Map.of());
+ Map<String, X509Certificate> trustedCertificates,
+ Map<String, KeyPair> credentials) implements Immutable {
+ public static final NetconfKeystore EMPTY = new NetconfKeystore(Map.of(), Map.of(), Map.of());
public NetconfKeystore {
privateKeys = Map.copyOf(privateKeys);
trustedCertificates = Map.copyOf(trustedCertificates);
+ credentials = Map.copyOf(credentials);
}
}