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> T
Generic 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 OAuthFlows
strict()
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.
-
strict
Description copied from class:OpenApiElement
Sets strict mode on this bean.- Overrides:
strict
in classOpenApiElement
- Returns:
- This object
-
strict
Description copied from class:OpenApiElement
Sets strict mode on this bean.- Overrides:
strict
in 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
-
getImplicit
Bean property getter:implicit .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
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 iftype
is"array" .
Can benull to unset the property.- Returns:
- This object
-
getPassword
Bean property getter:password .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
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 iftype
is"array" .
Can benull to unset the property.- Returns:
- This object
-
getClientCredentials
Bean property getter:clientCredentials .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
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 iftype
is"array" .
Can benull to unset the property.- Returns:
- This object
-
getAuthorizationCode
Bean property getter:authorizationCode .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
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 iftype
is"array" .
Can benull to unset the property.- Returns:
- This object
-
get
Description copied from class:OpenApiElement
Generic property getter.Can be used to retrieve non-standard Swagger fields such as
"$ref" .- Overrides:
get
in 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.
-
set
Description copied from class:OpenApiElement
Generic property setter.Can be used to set non-standard Swagger fields such as
"$ref" .- Overrides:
set
in classOpenApiElement
- Parameters:
property
- The property name to set. Must not benull .value
- The new value for the property.- Returns:
- This object
-
keySet
Description copied from class:OpenApiElement
Returns all the keys on this element.- Overrides:
keySet
in classOpenApiElement
- Returns:
- All the keys on this element.
Nevernull .
-