@InterfaceAudience.Public @InterfaceStability.Evolving public class OAuth2ConnectionConfigurator extends Object implements org.apache.hadoop.security.authentication.client.ConnectionConfigurator
Constructor and Description |
---|
OAuth2ConnectionConfigurator(Configuration conf) |
OAuth2ConnectionConfigurator(Configuration conf,
org.apache.hadoop.security.authentication.client.ConnectionConfigurator sslConfigurator) |
Modifier and Type | Method and Description |
---|---|
HttpURLConnection |
configure(HttpURLConnection conn)
Configures the given
HttpURLConnection instance. |
public static final String HEADER
public OAuth2ConnectionConfigurator(Configuration conf)
public OAuth2ConnectionConfigurator(Configuration conf, org.apache.hadoop.security.authentication.client.ConnectionConfigurator sslConfigurator)
public HttpURLConnection configure(HttpURLConnection conn) throws IOException
org.apache.hadoop.security.authentication.client.ConnectionConfigurator
HttpURLConnection
instance.configure
in interface org.apache.hadoop.security.authentication.client.ConnectionConfigurator
conn
- the HttpURLConnection
instance to configure.HttpURLConnection
instance.IOException
- if an IO error occurred.Copyright © 2023 Apache Software Foundation. All rights reserved.