public interface SecurityRequirement extends Constructible, Map<String,List<String>>
Modifier and Type | Method and Description |
---|---|
SecurityRequirement |
addScheme(String securitySchemeName)
Adds a security scheme to the SecurityRequirement instance based on the scheme name.
|
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.
|
SecurityRequirement |
addScheme(String securitySchemeName,
String scope)
Adds a security scheme to the SecurityRequirement instance based on the scheme name and
required scope (optional) provided.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
SecurityRequirement addScheme(String securitySchemeName, 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(String securitySchemeName, List<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(String securitySchemeName)
securitySchemeName
- the name of security scheme declared in the Components section of the OpenAPI documentCopyright © 2017–2018 Eclipse MicroProfile. All rights reserved.