Class 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 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 a OAuthFlows OpenAPI node.
        Parameters:
        node - the json object
        Returns:
        OAuthFlows model
      • readOAuthScopes

        public static Map<String,​String> readOAuthScopes​(com.fasterxml.jackson.databind.JsonNode node)
        Reads a map of OAuth scopes.
        Parameters:
        node - json map
        Returns:
        Map of name and description of the scope