Class OAuthReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.oauth.OAuthReader
-
public class OAuthReader extends Object
Reading the Oauth flow annotation- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
- oauthFlowsObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.static Map<String,String>readOAuthScopes(com.fasterxml.jackson.databind.JsonNode node)Reads a map of OAuth scopes.
-
-
-
Method Detail
-
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
-
-