public class NodeAuthModuleConfig extends AbstractModuleConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
NODEAUTH_CONNECT_TIMEOUT_KEY
Config reference key for the number of milliseconds before the socket times out while connecting
|
static String |
NODEAUTH_NON_TLS_CONNECTIONS_PERMITTED_KEY
Config reference key to enable/disable non-TLS connections
|
static String |
NODEAUTH_SOCKET_RETRIES_KEY
Config reference key for the number of socket retries before failure
|
static String |
NODEAUTH_SOCKET_RETRY_WAIT_KEY
Config reference key for the number of milliseconds between each retry
|
static String |
NODEAUTH_SOCKET_TIMEOUT_KEY
Config reference key for the number of milliseconds before the socket times out
|
static String |
NODEAUTH_TLS_ENABLED_KEY
Config reference key for TLS Enable/Disable
|
| Constructor and Description |
|---|
NodeAuthModuleConfig()
Default constructor for the Node Authentication Module configuration
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeout()
Gets the number of milliseconds to wait before a socket times out
|
int |
getSocketRetries()
Gets the number of times to try opening a socket before giving up
|
int |
getSocketRetryWait()
Gets the number of milliseconds to wait between each connect attempt
if the previous failed
|
int |
getSocketTimeout()
Gets the number of milliseconds to wait before a socket times out
|
boolean |
isNonTLSConnectionsPermitted()
Returns if non-TLS connections can be created.
|
boolean |
isTLSEnabled()
Returns if TLS connections are currently allowed
|
void |
setConnectTimeout(int ms)
Sets the number of milliseconds to wait before a socket times out while connecting
|
void |
setNonTLSConnectionsPermitted(boolean enable)
Sets if non-TLS connections are permitted
|
void |
setSocketRetries(int count)
Sets the number of times to try opening a socket before giving up
|
void |
setSocketRetryWait(int ms)
Sets the number of milliseconds to wait between each connect attempt
if the previous failed
|
void |
setSocketTimeout(int ms)
Sets the number of milliseconds to wait before a socket times out
|
void |
setTLSEnabled(boolean enable)
Sets if TLS connections are currently allowed
|
getOption, getProperties, setOptionpublic static final String NODEAUTH_TLS_ENABLED_KEY
public static final String NODEAUTH_NON_TLS_CONNECTIONS_PERMITTED_KEY
public static final String NODEAUTH_SOCKET_RETRIES_KEY
public static final String NODEAUTH_SOCKET_RETRY_WAIT_KEY
public static final String NODEAUTH_SOCKET_TIMEOUT_KEY
public static final String NODEAUTH_CONNECT_TIMEOUT_KEY
public NodeAuthModuleConfig()
public boolean isTLSEnabled()
public void setTLSEnabled(boolean enable)
enable - Allow TLS connections (true) or not (false)public boolean isNonTLSConnectionsPermitted()
public void setNonTLSConnectionsPermitted(boolean enable)
enable - Allow non-TLS connections (true) or not (false)public int getSocketRetries()
public void setSocketRetries(int count)
count - The number of triespublic int getSocketRetryWait()
public void setSocketRetryWait(int ms)
ms - The number of milliseconds to waitpublic int getSocketTimeout()
public void setSocketTimeout(int ms)
ms - The socket timeout in millisecondspublic int getConnectTimeout()
public void setConnectTimeout(int ms)
ms - The socket connect timeout in millisecondsCopyright © 2016 Open eHealth Foundation. All rights reserved.