Class OAuthReader

    • Method Detail

      • readOAuthFlows

        public static org.eclipse.microprofile.openapi.models.security.OAuthFlows readOAuthFlows​(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