Annotation Type SecurityRequirement

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String name
      This name must correspond to a declared SecurityRequirement.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] scopes
      If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names required for the execution.
    • Element Detail

      • name

        String name
        This name must correspond to a declared SecurityRequirement.
        Returns:
        String name
      • scopes

        String[] scopes
        If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names required for the execution. For other security scheme types, the array must be empty.
        Returns:
        String array of scopes
        Default:
        {}