@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
@Repeatable(value=SecurityRequirements.class)
@Inherited
public @interface SecurityRequirement
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
name
Name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
scopes
If the security scheme referred by the name property is of type "oauth2" or "openIdConnect",
then the scopes array is a list of scope names required for the execution.
|
public abstract java.lang.String name
public abstract java.lang.String[] scopes
For other security scheme types, the array MUST be empty.