Class SecuritySchemeReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.securityscheme.SecuritySchemeReader
-
public class SecuritySchemeReader extends Object
Reading the Security Scheme annotation- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
- securitySchemeObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.jboss.jandex.AnnotationInstance>getSecuritySchemeAnnotations(org.jboss.jandex.AnnotationTarget target)static StringgetSecuritySchemeName(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.static Map<String,org.eclipse.microprofile.openapi.models.security.SecurityScheme>readSecuritySchemes(com.fasterxml.jackson.databind.JsonNode node)Reads theSecuritySchemeOpenAPI nodes.static Map<String,org.eclipse.microprofile.openapi.models.security.SecurityScheme>readSecuritySchemes(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)Reads a map of SecurityScheme annotations.
-
-
-
Method Detail
-
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(org.jboss.jandex.AnnotationTarget target)
-
getSecuritySchemeName
public static String getSecuritySchemeName(org.jboss.jandex.AnnotationInstance annotation)
-
-