All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.microprofile.openapi.models.security.OAuthFlows Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
/**
 * Copyright (c) 2017 Contributors to the Eclipse Foundation
 * Copyright 2017 SmartBear Software
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.eclipse.microprofile.openapi.models.security; import org.eclipse.microprofile.openapi.models.Constructible; import org.eclipse.microprofile.openapi.models.Extensible; /** * Configuration of the supported OAuthFlows * * @see OpenAPI Specification OAuth Flows * Object */ public interface OAuthFlows extends Constructible, Extensible { /** * This method returns the implicit property from OAuthFlows instance. * * @return OAuthFlow implicit **/ OAuthFlow getImplicit(); /** * This method sets the implicit property of OAuthFlows instance to the given implicit argument. * * @param implicit * the OauthFlow instance */ void setImplicit(OAuthFlow implicit); /** * This method sets the implicit property of OAuthFlows instance to the given implicit argument and returns the * modified instance. * * @param implicit * the OauthFlow instance * @return OAuthFlows instance with the set implicit property */ default OAuthFlows implicit(OAuthFlow implicit) { setImplicit(implicit); return this; } /** * OAuth Resource Owner Password flow *

* This method returns the password property from OAuthFlows instance. *

* * @return OAuthFlow password **/ OAuthFlow getPassword(); /** * OAuth Resource Owner Password flow *

* This method sets the password property of OAuthFlows instance to the given password argument. *

* * @param password * the OAuthFlow instance */ void setPassword(OAuthFlow password); /** * OAuth Resource Owner Password flow *

* This method sets the password property of an OAuthFlows instance to the given password argument and returns the * modified instance. *

* * @param password * the OauthFlow instance * @return OAuthFlows instance with the set password property */ default OAuthFlows password(OAuthFlow password) { setPassword(password); return this; } /** * OAuth Client Credential flow; previously called application in OpenAPI 2.0 *

* This method returns the clientCredentials property from OAuthFlows instance. *

* * @return OAuthFlow clientCredentials **/ OAuthFlow getClientCredentials(); /** * OAuth Client Credential flow; previously called application in OpenAPI 2.0 *

* This method sets the clientCredentials property of OAuthFlows instance to the given clientCredentials argument. *

* * @param clientCredentials * the OauthFlow instance */ void setClientCredentials(OAuthFlow clientCredentials); /** * OAuth Client Credential flow; previously called application in OpenAPI 2.0 *

* This method sets the clientCredentials property of OAuthFlows instance to the given clientCredentials argument * and returns the modified instance. *

* * @param clientCredentials * the OauthFlow instance * @return OAuthFlows instance with the set clientCredentials property */ default OAuthFlows clientCredentials(OAuthFlow clientCredentials) { setClientCredentials(clientCredentials); return this; } /** * OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0 *

* This method returns the authorizationCode property from OAuthFlows instance. *

* * @return OAuthFlow authorizationCode **/ OAuthFlow getAuthorizationCode(); /** * OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0 *

* This method sets the authorizationCode property of OAuthFlows instance to the given authorizationCode argument. *

* * @param authorizationCode * the OauthFlow instance */ void setAuthorizationCode(OAuthFlow authorizationCode); /** * OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0 *

* This method sets the authorizationCode property of OAuthFlows instance to the given authorizationCode argument * and returns the modified instance. *

* * @param authorizationCode * the OauthFlow instance * @return OAuthFlows instance with the set authorizationCode property */ default OAuthFlows authorizationCode(OAuthFlow authorizationCode) { setAuthorizationCode(authorizationCode); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy