Class CredentialResources
java.lang.Object
org.apache.drill.exec.server.rest.CredentialResources
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
createOrUpdateCredentials
(String pluginName, String username, String password) javax.ws.rs.core.Response
createOrUpdatePlugin
(String pluginName, UsernamePasswordContainer credentials) getConfigsFor
(String pluginGroup) org.glassfish.jersey.server.mvc.Viewable
javax.ws.rs.core.Response
updateAccessToken
(String name, OAuthTokenContainer tokens) javax.ws.rs.core.Response
updateAuthToken
(String name, String code) javax.ws.rs.core.Response
updateOAuthTokens
(String name, OAuthTokenContainer tokenContainer) javax.ws.rs.core.Response
updateRefreshToken
(String name, OAuthTokenContainer tokens)
-
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
-