Adapt API to OpenApiObject removal
[netconf.git] / restconf / restconf-openapi / src / main / java / org / opendaylight / restconf / openapi / model / security / SecuritySchemeObject.java
1 /*
2  * Copyright (c) 2023 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.restconf.openapi.model.security;
9
10 public interface SecuritySchemeObject {
11     Type type();
12
13     /**
14      * Security types enumeration.
15      *
16      * <p>
17      * <a href="https://swagger.io/specification/#security-scheme-object">OpenApi spec</a> specifies valid type values:
18      * "apiKey", "http" "mutualTLS", "oauth2", "openIdConnect".
19      *
20      * <p>
21      * We are only using the "http" which might change in the future, so we will extend the Type enum.
22      */
23     enum Type {
24         http
25     }
26 }