public class HiveJdbcBrowserClient extends Object implements IJdbcBrowserClient
IJdbcBrowserClient.HiveJdbcBrowserException, IJdbcBrowserClient.HiveJdbcBrowserServerResponse, IJdbcBrowserClient.JdbcBrowserClientContext| Modifier and Type | Field and Description |
|---|---|
protected IJdbcBrowserClient.JdbcBrowserClientContext |
clientContext |
static String |
TIMEOUT_ERROR_MSG |
| Modifier and Type | Method and Description |
|---|---|
void |
addServerResponse(IJdbcBrowserClient.HiveJdbcBrowserServerResponse response) |
void |
close() |
void |
doBrowserSSO()
Execute the browser actions to complete the SSO workflow.
|
String |
getClientIdentifier()
Gets the client identifier to be used to set in the http header for the requests
from this browser client.
|
org.apache.hive.jdbc.saml.HiveJdbcBrowserClient.OsType |
getMatchingOs(String osName) |
Integer |
getPort()
Gets the port on this localhost where this browser client is listening on.
|
IJdbcBrowserClient.HiveJdbcBrowserServerResponse |
getServerResponse()
Returns the
IJdbcBrowserClient.HiveJdbcBrowserServerResponse as received from the server
on the port where this browser client is listening on. |
void |
init(IJdbcBrowserClient.JdbcBrowserClientContext clientContext)
Initializes the browser client context.
|
protected void |
openBrowserWindow() |
void |
startListening()
Start a webserver and bind to a port number as configued.
|
String |
toString() |
public static final String TIMEOUT_ERROR_MSG
protected IJdbcBrowserClient.JdbcBrowserClientContext clientContext
public void startListening()
throws IJdbcBrowserClient.HiveJdbcBrowserException
IJdbcBrowserClientstartListening in interface IJdbcBrowserClientIJdbcBrowserClient.HiveJdbcBrowserExceptionpublic Integer getPort()
IJdbcBrowserClientgetPort in interface IJdbcBrowserClientpublic IJdbcBrowserClient.HiveJdbcBrowserServerResponse getServerResponse()
IJdbcBrowserClientIJdbcBrowserClient.HiveJdbcBrowserServerResponse as received from the server
on the port where this browser client is listening on.getServerResponse in interface IJdbcBrowserClientpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void init(IJdbcBrowserClient.JdbcBrowserClientContext clientContext)
IJdbcBrowserClientHiveSamlUtils.SSO_CLIENT_IDENTIFIER.init in interface IJdbcBrowserClientpublic void doBrowserSSO()
throws IJdbcBrowserClient.HiveJdbcBrowserException
IJdbcBrowserClientIJdbcBrowserClient.init(JdbcBrowserClientContext) method has been called already
to initialize the state needed for doing the browser based flow.doBrowserSSO in interface IJdbcBrowserClientIJdbcBrowserClient.HiveJdbcBrowserException - in case of any errors to instantiate or execute
browser flow.protected void openBrowserWindow()
throws IJdbcBrowserClient.HiveJdbcBrowserException
public void addServerResponse(IJdbcBrowserClient.HiveJdbcBrowserServerResponse response)
public String getClientIdentifier()
IJdbcBrowserClientgetClientIdentifier in interface IJdbcBrowserClientpublic org.apache.hive.jdbc.saml.HiveJdbcBrowserClient.OsType getMatchingOs(String osName)
Copyright © 2024 The Apache Software Foundation. All rights reserved.