Bump ietf-truststore to 2022-12-12
[netconf.git] / truststore / truststore-none / src / main / java / org / opendaylight / netconf / truststore / none / NoneTruststoreFeatureProvider.java
1 /*
2  * Copyright (c) 2022 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netconf.truststore.none;
9
10 import java.util.Set;
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.truststore.rev221212.IetfTruststoreData;
14 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.truststore.rev221212.LocalDefinitionsSupported;
15 import org.opendaylight.yangtools.yang.binding.YangFeature;
16 import org.opendaylight.yangtools.yang.binding.YangFeatureProvider;
17
18 /**
19  * Simple implementation, which advertizes we do not have a central truststore.
20  */
21 @MetaInfServices
22 @NonNullByDefault
23 public final class NoneTruststoreFeatureProvider implements YangFeatureProvider<IetfTruststoreData> {
24     @Override
25     public Class<IetfTruststoreData> boundModule() {
26         return IetfTruststoreData.class;
27     }
28
29     @Override
30     public Set<? extends YangFeature<?, IetfTruststoreData>> supportedFeatures() {
31         return Set.of(LocalDefinitionsSupported.VALUE);
32     }
33 }