Class OAuth2ConnectionConfigurator
java.lang.Object
org.apache.hadoop.hdfs.web.oauth2.OAuth2ConnectionConfigurator
- All Implemented Interfaces:
org.apache.hadoop.security.authentication.client.ConnectionConfigurator
@Public
@Evolving
public class OAuth2ConnectionConfigurator
extends Object
implements org.apache.hadoop.security.authentication.client.ConnectionConfigurator
Configure a connection to use OAuth2 authentication.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2ConnectionConfigurator(Configuration conf, org.apache.hadoop.security.authentication.client.ConnectionConfigurator sslConfigurator) -
Method Summary
Modifier and TypeMethodDescriptionconfigure(HttpURLConnection conn) Configures the givenHttpURLConnectioninstance.
-
Field Details
-
HEADER
- See Also:
-
-
Constructor Details
-
OAuth2ConnectionConfigurator
-
OAuth2ConnectionConfigurator
public OAuth2ConnectionConfigurator(Configuration conf, org.apache.hadoop.security.authentication.client.ConnectionConfigurator sslConfigurator)
-
-
Method Details
-
configure
Description copied from interface:org.apache.hadoop.security.authentication.client.ConnectionConfiguratorConfigures the givenHttpURLConnectioninstance.- Specified by:
configurein interfaceorg.apache.hadoop.security.authentication.client.ConnectionConfigurator- Parameters:
conn- theHttpURLConnectioninstance to configure.- Returns:
- the configured
HttpURLConnectioninstance. - Throws:
IOException- if an IO error occurred.
-