Class OAuthReader
java.lang.Object
io.smallrye.openapi.runtime.io.oauth.OAuthReader
Reading the Oauth flow annotation
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.microprofile.openapi.models.security.OAuthFlowsreadOAuthFlows(com.fasterxml.jackson.databind.JsonNode node) Reads aOAuthFlowsOpenAPI node.static org.eclipse.microprofile.openapi.models.security.OAuthFlowsreadOAuthFlows(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads an OAuthFlows annotation into a model.readOAuthScopes(com.fasterxml.jackson.databind.JsonNode node) Reads a map of OAuth scopes.
-
Method Details
-
readOAuthFlows
public static org.eclipse.microprofile.openapi.models.security.OAuthFlows readOAuthFlows(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads an OAuthFlows annotation into a model.- Parameters:
annotationValue- the annotation value- Returns:
- OAuthFlows model
-
readOAuthFlows
public static org.eclipse.microprofile.openapi.models.security.OAuthFlows readOAuthFlows(com.fasterxml.jackson.databind.JsonNode node) Reads aOAuthFlowsOpenAPI node.- Parameters:
node- the json object- Returns:
- OAuthFlows model
-
readOAuthScopes
Reads a map of OAuth scopes.- Parameters:
node- json map- Returns:
- Map of name and description of the scope
-