A set of annotations to represent various security components of an OpenAPI app.
@Path("/reviews") @SecurityScheme( securitySchemeName = "reviewoauth2", type = SecuritySchemeType.OAUTH2, description = "authentication needed to create and delete reviews", flows = @OAuthFlows( implicit = @OAuthFlow( authorizationUrl = "https://example.com/api/oauth/dialog", scopes = @OAuthScope( name = "write:reviews", description = "create a review" ) ) ) )
Annotation Types Summary Annotation Type Description OAuthFlowConfiguration details for a supported OAuth Flow. OAuthFlowsAllows configuration of the supported OAuth Flows. OAuthScopeRepresents an OAuth scope. SecurityRequirementSpecifies a security requirement for an operation. SecurityRequirementsThis object represents an array of security requirements that can be specified for the operation or at definition level. SecurityRequirementsSetThis object represents a map of security requirements that can be specified for the operation or at definition level. SecuritySchemeDefines a security scheme that can be used by the operations. SecuritySchemesThis object represents an array of SecurityScheme annotations that can be specified at the definition level.