public interface SecurityRequirement extends Constructible, java.util.Map<java.lang.String,java.util.List<java.lang.String>>
Modifier and Type | Method and Description |
---|---|
SecurityRequirement |
addScheme(java.lang.String securitySchemeName)
Adds a security scheme to the SecurityRequirement instance based on the scheme name.
|
SecurityRequirement |
addScheme(java.lang.String securitySchemeName,
java.util.List<java.lang.String> scopes)
Adds a security scheme to the SecurityRequirement instance based on the scheme name and
required scopes (optional) provided.
|
SecurityRequirement |
addScheme(java.lang.String securitySchemeName,
java.lang.String scope)
Adds a security scheme to the SecurityRequirement instance based on the scheme name and
required scope (optional) provided.
|
SecurityRequirement addScheme(java.lang.String securitySchemeName, java.lang.String scope)
securitySchemeName
- the name of security scheme declared in the Components section of the OpenAPI documentscope
- a required scope - only valid when the defined scheme is 'oauth2' or 'openIdConnect'SecurityRequirement addScheme(java.lang.String securitySchemeName, java.util.List<java.lang.String> scopes)
securitySchemeName
- the name of security scheme declared in the Components section of the OpenAPI documentscopes
- the scopes required - only valid when the defined scheme is 'oauth2' or 'openIdConnect'SecurityRequirement addScheme(java.lang.String securitySchemeName)
securitySchemeName
- the name of security scheme declared in the Components section of the OpenAPI document