public class Context extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Context.UserType |
| Modifier and Type | Field and Description |
|---|---|
protected static long |
serialVersionUID
For interoperability with possible future changes.
|
| Constructor and Description |
|---|
Context(String host,
int port,
String kerberosToken)
Constructs a new Context.
|
Context(String host,
int port,
String kerberosToken,
ServerSettings settings)
Constructs a new Context.
|
Context(String login,
String password,
String host,
int port)
Constructs a new Context.
|
Context(String login,
String password,
String host,
int port,
boolean localAuth)
Constructs a new Context.
|
Context(String login,
String password,
String host,
int port,
ServerSettings settings)
Constructs a new Context.
|
Context(String login,
String password,
String host,
int port,
ServerSettings settings,
boolean localAuth)
Constructs a new Context.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getHost()
Obtains the context host.
|
String |
getKerberosToken() |
String |
getLogin()
Obtains the context login.
|
String |
getPassword()
Obtains the context password.
|
int |
getPort()
Obtains the context port.
|
ServerSettings |
getServerSettings()
Obtains the server settings.
|
Context.UserType |
getUserType() |
int |
hashCode() |
boolean |
isLocalAuth()
Obtains how the user is authenticated: local (against Scheduler) or remote (against VDP).
|
String |
toString() |
protected static final long serialVersionUID
public Context(String login, String password, String host, int port)
login - the ID for authenticating the user against the facade.password - the password of the user for authenticating the user
against the facade.host - host identifier of the node where the facade is available.port - port number of the node where the facade is available.public Context(String login, String password, String host, int port, boolean localAuth)
login - the ID for authenticating the user against the facade.password - the password of the user for authenticating the user
against the facade.host - host identifier of the node where the facade is available.port - port number of the node where the facade is available.localAuth - true for authenticating the user against the Scheduler server;
false for authenticating the user against the VDP server.public Context(String login, String password, String host, int port, ServerSettings settings)
login - the ID for authenticating the user against the facade.password - the password of the user for authenticating the user
against the facade.host - host identifier of the node where the facade is available.port - port number of the node where the facade is available.settings - additional server settings to control the server
performance.public Context(String login, String password, String host, int port, ServerSettings settings, boolean localAuth)
login - the ID for authenticating the user against the facade.password - the password of the user for authenticating the user
against the facade.host - host identifier of the node where the facade is available.port - port number of the node where the facade is available.settings - additional server settings to control the server
performance.localAuth - true for authenticating the user against the Scheduler server;
false for authenticating the user against the VDP server.public Context(String host, int port, String kerberosToken, ServerSettings settings)
host - host identifier of the node where the facade is available.port - port number of the node where the facade is available.kerberosToken - token to authenticate the user using Kerberos.settings - additional server settings to control the server
performance.public Context(String host, int port, String kerberosToken)
host - host identifier of the node where the facade is available.port - port number of the node where the facade is available.kerberosToken - token to authenticate the user using Kerberos.settings - additional server settings to control the server
performance.public String getLogin()
public String getPassword()
public String getHost()
public int getPort()
public ServerSettings getServerSettings()
public boolean isLocalAuth()
true if the user is going to be authenticated with Scheduler; false if the user
is going to be authenticated with VDP.public String getKerberosToken()
public Context.UserType getUserType()
Copyright © 2024 Denodo Technologies. All rights reserved.