Class OAuthFlows
The OAuthFlows Object allows configuration of the supported OAuth Flows. This object contains the configuration for different OAuth 2.0 flows that can be used to secure the API. Each flow type has its own specific configuration requirements and use cases.
OpenAPI Specification:
The OAuthFlows Object is composed of the following fields:
implicit (OAuthFlow) - Configuration for the OAuth Implicit flowpassword (OAuthFlow) - Configuration for the OAuth Resource Owner Password flowclientCredentials (OAuthFlow) - Configuration for the OAuth Client Credentials flowauthorizationCode (OAuthFlow) - Configuration for the OAuth Authorization Code flow
Example:
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Make a deep copy of this object.<T> TGeneric property getter.Bean property getter:authorizationCode .Bean property getter:clientCredentials .Bean property getter:implicit .Bean property getter:password .keySet()Returns all the keys on this element.Generic property setter.setAuthorizationCode(OAuthFlow value) Bean property setter:authorizationCode .setClientCredentials(OAuthFlow value) Bean property setter:items .setImplicit(OAuthFlow value) Bean property setter:items .setPassword(OAuthFlow value) Bean property setter:items .protected OAuthFlowsstrict()Sets strict mode on this bean.Sets strict mode on this bean.
-
Constructor Details
-
OAuthFlows
public OAuthFlows()Default constructor. -
OAuthFlows
Copy constructor.- Parameters:
copyFrom- The object to copy.
-
-
Method Details
-
copy
Make a deep copy of this object.- Returns:
- A deep copy of this object.
-
get
Description copied from class:OpenApiElementGeneric property getter.Can be used to retrieve non-standard Swagger fields such as
"$ref" .- Overrides:
getin classOpenApiElement- Type Parameters:
T- The datatype to cast the value to.- Parameters:
property- The property name to retrieve.type- The datatype to cast the value to.- Returns:
- The property value, or
null if the property does not exist or is not set.
-
getAuthorizationCode
Bean property getter:authorizationCode .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
getClientCredentials
Bean property getter:clientCredentials .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
getImplicit
Bean property getter:implicit .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
getPassword
Bean property getter:password .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
keySet
Description copied from class:OpenApiElementReturns all the keys on this element.- Overrides:
keySetin classOpenApiElement- Returns:
- All the keys on this element.
Nevernull .
-
set
Description copied from class:OpenApiElementGeneric property setter.Can be used to set non-standard Swagger fields such as
"$ref" .- Overrides:
setin classOpenApiElement- Parameters:
property- The property name to set. Must not benull .value- The new value for the property.- Returns:
- This object
-
setAuthorizationCode
Bean property setter:authorizationCode .Describes the type of items in the array.
- Parameters:
value- The new value for this property.
Property value is required iftypeis"array" .
Can benull to unset the property.- Returns:
- This object
-
setClientCredentials
Bean property setter:items .Describes the type of items in the array.
- Parameters:
value- The new value for this property.
Property value is required iftypeis"array" .
Can benull to unset the property.- Returns:
- This object
-
setImplicit
Bean property setter:items .Describes the type of items in the array.
- Parameters:
value- The new value for this property.
Property value is required iftypeis"array" .
Can benull to unset the property.- Returns:
- This object
-
setPassword
Bean property setter:items .Describes the type of items in the array.
- Parameters:
value- The new value for this property.
Property value is required iftypeis"array" .
Can benull to unset the property.- Returns:
- This object
-
strict
Description copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
strictin classOpenApiElement- Parameters:
value- The new value for this property.
Non-boolean values will be converted to boolean usingBoolean..valueOf (value.toString())
Can benull (interpreted asfalse ).- Returns:
- This object
-
strict
Description copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
strictin classOpenApiElement- Returns:
- This object
-