2 * Copyright (c) 2022 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netconf.keystore.none;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.kohsuke.MetaInfServices;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.keystore.rev220524.AsymmetricKeys;
14 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.keystore.rev220524.IetfKeystoreData;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.keystore.rev220524.LocalDefinitionsSupported;
16 import org.opendaylight.yangtools.yang.binding.YangFeature;
17 import org.opendaylight.yangtools.yang.binding.YangFeatureProvider;
20 * Simple implementation, which advertizes we do not have a central keystore and support asymmetric keys only.
24 public final class NoneKeystoreFeatureProvider implements YangFeatureProvider<IetfKeystoreData> {
26 public Class<IetfKeystoreData> boundModule() {
27 return IetfKeystoreData.class;
31 public Set<? extends YangFeature<?, IetfKeystoreData>> supportedFeatures() {
32 return Set.of(LocalDefinitionsSupported.VALUE, AsymmetricKeys.VALUE);