Class SecuritySchemeReader
java.lang.Object
io.smallrye.openapi.runtime.io.securityscheme.SecuritySchemeReader
Reading the Security Scheme annotation
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.jboss.jandex.AnnotationInstance>getSecuritySchemeAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target) static StringgetSecuritySchemeName(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation) static org.eclipse.microprofile.openapi.models.security.SecuritySchemereadSecurityScheme(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance) Reads a SecurityScheme annotation into a model.readSecuritySchemes(com.fasterxml.jackson.databind.JsonNode node) Reads theSecuritySchemeOpenAPI nodes.readSecuritySchemes(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a map of SecurityScheme annotations.
-
Method Details
-
readSecuritySchemes
public static Map<String,org.eclipse.microprofile.openapi.models.security.SecurityScheme> readSecuritySchemes(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a map of SecurityScheme annotations.- Parameters:
context- scanning contextannotationValue- Map of @SecurityScheme annotations- Returns:
- Map of SecurityScheme models
-
readSecuritySchemes
public static Map<String,org.eclipse.microprofile.openapi.models.security.SecurityScheme> readSecuritySchemes(com.fasterxml.jackson.databind.JsonNode node) Reads theSecuritySchemeOpenAPI nodes.- Parameters:
node- map of json objects- Returns:
- Map of SecurityScheme models
-
readSecurityScheme
public static org.eclipse.microprofile.openapi.models.security.SecurityScheme readSecurityScheme(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance) Reads a SecurityScheme annotation into a model.- Parameters:
context- scanning contextannotationInstance- the @SecurityScheme annotation- Returns:
- SecurityScheme model
-
getSecuritySchemeAnnotations
public static List<org.jboss.jandex.AnnotationInstance> getSecuritySchemeAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target) -
getSecuritySchemeName
public static String getSecuritySchemeName(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation)
-