ConcourseClientConfiguration instead@Deprecated public abstract class ConcourseClientPreferences extends PreferencesHandler
concourse_client.prefs file that is used to
configure a client connection.
Instantiate using open(String)
| Modifier and Type | Method and Description |
|---|---|
static ConcourseClientPreferences |
from(Path... files)
Deprecated.
Return a
ConcourseClientPreferences handler that is sourced from
the files. |
static ConcourseClientPreferences |
fromCurrentWorkingDirectory()
Deprecated.
Return a
ConcourseClientPreferences handler that is sourced from
a concourse_client.prefs file in the current working directory. |
static ConcourseClientPreferences |
fromUserHomeDirectory()
Deprecated.
Return a
ConcourseClientPreferences handler that is sourced from
a concourse_client.prefs file in the user's home directory. |
abstract String |
getEnvironment()
Deprecated.
Return the value associated with the
environment key. |
abstract String |
getHost()
Deprecated.
Return the value associated with the
host key. |
abstract char[] |
getPassword()
Deprecated.
Return the value associated with the
password key. |
abstract char[] |
getPasswordExplicit()
Deprecated.
Return the value associated with the
password key, if it is
explicitly defined in the prefs file. |
abstract int |
getPort()
Deprecated.
Return the value associated with the
port key. |
abstract String |
getUsername()
Deprecated.
Return the value associated with the
username key. |
static ConcourseClientPreferences |
open(String file)
Deprecated.
use
ConcourseServerPreferences.from(Path...) instead |
abstract void |
setEnvironment(String environment)
Deprecated.
Set the value associated with the
environment key. |
abstract void |
setHost(String host)
Deprecated.
Set the value associated with the
host key. |
abstract void |
setPassword(char[] password)
Deprecated.
Set the value associated with the
password key. |
abstract void |
setPort(int port)
Deprecated.
Set the value associated with the
port key. |
abstract void |
setUsername(String username)
Deprecated.
Set the value associated with the
username key. |
getEnum, getSizepublic static ConcourseClientPreferences from(Path... files)
ConcourseClientPreferences handler that is sourced from
the files.files - public static ConcourseClientPreferences fromCurrentWorkingDirectory()
ConcourseClientPreferences handler that is sourced from
a concourse_client.prefs file in the current working directory.public static ConcourseClientPreferences fromUserHomeDirectory()
ConcourseClientPreferences handler that is sourced from
a concourse_client.prefs file in the user's home directory.@Deprecated public static ConcourseClientPreferences open(String file)
ConcourseServerPreferences.from(Path...) insteadConcourseClientPreferences wrapper that is backed by the
configuration information in file.file - the absolute path to the preferences file (relative paths
will resolve to the user's home directory)public abstract String getEnvironment()
environment key.public abstract String getHost()
host key.public abstract char[] getPassword()
password key.
NOTE: This method returns the password as a char array so that the caller can null out the data immediately after use. This is generally advised to limit the amount of time that the sensitive data remains in memory.
public abstract char[] getPasswordExplicit()
password key, if it is
explicitly defined in the prefs file. Unlike the getPassword()
method, this one will not return the default password if one is not
explicitly defined in the file.
NOTE: This method returns the password as a char array so that the caller can null out the data immediately after use. This is generally advised to limit the amount of time that the sensitive data remains in memory.
public abstract int getPort()
port key.public abstract String getUsername()
username key.public abstract void setEnvironment(String environment)
environment key.environment - public abstract void setHost(String host)
host key.host - public abstract void setPassword(char[] password)
password key.password - public abstract void setPort(int port)
port key.port - public abstract void setUsername(String username)
username key.username -