| Modifier and Type | Method and Description |
|---|---|
| public SecurityRequirement | Returns: Updated SecurityRequirement instancethe name of security scheme declared in the Components section of the OpenAPI document securitySchemeName, String a required scope. passing null will result in an empty list of scopes scope)Adds a security scheme to the SecurityRequirement instance based on the scheme name and required scope (optional) provided. |
| public SecurityRequirement | Returns: Updated SecurityRequirement instancethe name of security scheme declared in the Components section of the OpenAPI document securitySchemeName, List<String> the scopes required. passing null will result in an empty list of scopes scopes)Adds a security scheme to the SecurityRequirement instance based on the scheme name and required scopes (optional) provided. |
| public SecurityRequirement | |
| public default List | |
| public Map | |
| public default boolean | |
| public void | removeScheme(String
the name of security scheme securitySchemeName)Removes a security scheme to the SecurityRequirement instance based on the scheme name. |
| public void | setSchemes(Map<String, List<String>>
a map containing the security schemes. items)Set all security schemes to the SecurityRequirement instance. |
| addScheme | back to summary |
|---|---|
| public SecurityRequirement addScheme(String securitySchemeName, String scope) Adds a security scheme to the SecurityRequirement instance based on the scheme name and required scope (optional) provided.
| |
| addScheme | back to summary |
|---|---|
| public SecurityRequirement addScheme(String securitySchemeName, List<String> scopes) Adds a security scheme to the SecurityRequirement instance based on the scheme name and required scopes (optional) provided.
| |
| addScheme | back to summary |
|---|---|
| public SecurityRequirement addScheme(String securitySchemeName) Adds a security scheme to the SecurityRequirement instance based on the scheme name. No scopes are included, resulting in an empty list of scopes for the security scheme. This is valid when the defined security scheme is not 'oauth2' or 'openIdConnect'.
| |
| getScheme | back to summary |
|---|---|
| public default List Returns a list of scopes for a given scheme name. This is a convenience method for
| |
| getSchemes | back to summary |
|---|---|
| public Map Returns a copy map (potentially immutable) of the schemes. | |
| hasScheme | back to summary |
|---|---|
| public default boolean hasScheme(String securitySchemeName) Check whether a scheme is present in the map. This is a convenience method for
| |
| removeScheme | back to summary |
|---|---|
| public void removeScheme(String securitySchemeName) Removes a security scheme to the SecurityRequirement instance based on the scheme name.
| |
| setSchemes | back to summary |
|---|---|
| public void setSchemes(Map<String, List<String>> items) Set all security schemes to the SecurityRequirement instance. Keys are the name of security scheme declared in the Components section of the OpenAPI document, values are a list of required scope - only valid when the defined scheme is 'oauth2' or 'openIdConnect' | |