Interface OpenApiSecurityExtensionContext
-
public interface OpenApiSecurityExtensionContext
Context for theOpenApiSecurityExtensionContext
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOperationExtension(OpenApiOperationExtension extension)
Adds anOpenApiOperationExtension
.void
addSecurityScheme(java.lang.String securityName, io.swagger.v3.oas.models.security.SecurityScheme scheme)
Registers aSecurityScheme
.HttpSecurityExplorerContext
getHttpSecurity()
Obtains theHttpSecurityExplorerContext
.
-
-
-
Method Detail
-
getHttpSecurity
HttpSecurityExplorerContext getHttpSecurity()
Obtains theHttpSecurityExplorerContext
.- Returns:
HttpSecurityExplorerContext
.
-
addSecurityScheme
void addSecurityScheme(java.lang.String securityName, io.swagger.v3.oas.models.security.SecurityScheme scheme)
Registers aSecurityScheme
.- Parameters:
securityName
- Name of security.scheme
-SecurityScheme
.
-
addOperationExtension
void addOperationExtension(OpenApiOperationExtension extension)
Adds an
OpenApiOperationExtension
.This allows for custom description specific to
HttpSecuritySource
.- Parameters:
extension
-OpenApiOperationExtension
.
-
-