Class CredentialResources

java.lang.Object
org.apache.drill.exec.server.rest.CredentialResources

@Path("/") @RolesAllowed("authenticated") public class CredentialResources extends Object
  • Constructor Details

    • CredentialResources

      public CredentialResources()
  • Method Details

    • getPlugins

      @GET @Path("/credentials") @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable getPlugins()
    • getPluginsJSON

      @GET @Path("/credentials.json") @Produces("application/json") public List<PluginConfigWrapper> getPluginsJSON()
    • getConfigsFor

      @GET @Path("/credentials{group: (/[^/]+?)*}-plugins.json") @Produces("application/json") public List<PluginConfigWrapper> getConfigsFor(@PathParam("group") String pluginGroup)
    • createOrUpdateCredentials

      @POST @Path("/credentials/update_credentials") @Consumes("application/x-www-form-urlencoded") @Produces("application/json") public javax.ws.rs.core.Response createOrUpdateCredentials(@FormParam("plugin") String pluginName, @FormParam("username") String username, @FormParam("password") String password)
    • createOrUpdatePlugin

      @POST @Path("/credentials/{pluginName}/update_credentials.json") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createOrUpdatePlugin(@PathParam("pluginName") String pluginName, UsernamePasswordContainer credentials)
    • updateRefreshToken

      @POST @Path("/credentials/{name}/update_refresh_token") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateRefreshToken(@PathParam("name") String name, OAuthTokenContainer tokens)
    • updateAccessToken

      @POST @Path("/credentials/{name}/update_access_token") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateAccessToken(@PathParam("name") String name, OAuthTokenContainer tokens)
    • updateOAuthTokens

      @POST @Path("/credentials/{name}/update_oauth_tokens") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateOAuthTokens(@PathParam("name") String name, OAuthTokenContainer tokenContainer)
    • updateAuthToken

      @GET @Path("/credentials/{name}/update_oauth2_authtoken") @Produces("text/html") public javax.ws.rs.core.Response updateAuthToken(@PathParam("name") String name, @QueryParam("code") String code)