Package technology.openpool.ldap.adapter
Class ServerConfiguration
- java.lang.Object
-
- technology.openpool.ldap.adapter.ServerConfiguration
-
public class ServerConfiguration extends Object
The type Server configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_ABBREVIATE_GN_ATTRIBUTEThe constant CONFIG_ABBREVIATE_GN_ATTRIBUTE.static StringCONFIG_ABBREVIATE_SN_ATTRIBUTEThe constant CONFIG_ABBREVIATE_SN_ATTRIBUTE.static StringCONFIG_BASE_DN_DESCRIPTIONThe constant CONFIG_BASE_DN_DESCRIPTION.static StringCONFIG_BASE_DN_GROUPS_DESCRIPTIONThe constant CONFIG_BASE_DN_GROUPS_DESCRIPTION.static StringCONFIG_BASE_DN_USERS_DESCRIPTIONThe constant CONFIG_BASE_DN_USERS_DESCRIPTION.static StringCONFIG_BIND_ADDRESSThe constant CONFIG_BIND_ADDRESS.static StringCONFIG_CONNECTION_ACTIVE_THREADSThe constant CONFIG_CONNECTION_ACTIVE_THREADS.static StringCONFIG_CONNECTION_BACK_LOGThe constant CONFIG_CONNECTION_BACK_LOG.static StringCONFIG_DIRECTORY_BACKEND_PERMANENTThe constant CONFIG_DIRECTORY_BACKEND_PERMANENT.static StringCONFIG_DIRECTORY_BACKEND_SESSIONThe constant CONFIG_DIRECTORY_BACKEND_SESSION.static StringCONFIG_DS_CACHE_DIRThe constant CONFIG_DS_CACHE_DIR.static StringCONFIG_MODE_FLATTENINGThe constant CONFIG_MODE_FLATTENING.static StringCONFIG_RESPONSE_MAX_SIZE_LIMITThe constant CONFIG_RESPONSE_MAX_SIZE_LIMIT.static StringCONFIG_RESPONSE_MAX_TIME_LIMITThe constant CONFIG_RESPONSE_MAX_TIME_LIMIT.static StringCONFIG_SSL_ENABLEDThe constant CONFIG_SSL_ENABLED.static StringCONFIG_SSL_KEY_STORE_FILEThe constant CONFIG_SSL_KEY_STORE_FILE.static StringCONFIG_SSL_KEY_STORE_PWThe constant CONFIG_SSL_KEY_STORE_PW.
-
Constructor Summary
Constructors Constructor Description ServerConfiguration(Properties serverProperties, Properties backendProperties)Instantiates a new server configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertiesgetBackendProperties()Gets the backend properties.StringgetBaseDnDescription()Gets base DN description.StringgetBaseDnGroupsDescription()Gets base DN groups description.StringgetBaseDnUsersDescription()Gets base DN users description.intgetConnectionActiveThreads()Gets the number of threads to use in the executor to handle the incoming requests.intgetConnectionBackLog()Gets the number of incoming requests queued when all the threads are busy.PathgetDsCacheDir()Gets cache dir.StringgetHost()Gets host.PathgetKeyStoreFile()Gets key store file.StringgetKeyStorePassword()Gets key store password.List<String>getPermanentDirectoryBackendClasses()Gets the defined directory backend classes used as permanent instances.intgetPort()Gets port.intgetResponseMaxSizeLimit()Gets the maximum number of entries for responses.intgetResponseMaxTimeLimit()Gets the maximum time in seconds before an operation is aborted.List<String>getSessionDirectoryBackendClasses()Gets the defined directory backend classes used additional sessions.booleanisAbbreviateGnAttribute()Gets the boolean flag for abbreviation of GN attribute.booleanisAbbreviateSnAttribute()Gets the boolean flag for abbreviation of SN attribute.booleanisFlatteningEnabled()Is flattening boolean.booleanisSslEnabled()Is SSL enabled boolean.
-
-
-
Field Detail
-
CONFIG_DS_CACHE_DIR
public static final String CONFIG_DS_CACHE_DIR
The constant CONFIG_DS_CACHE_DIR.- See Also:
- Constant Field Values
-
CONFIG_BIND_ADDRESS
public static final String CONFIG_BIND_ADDRESS
The constant CONFIG_BIND_ADDRESS.- See Also:
- Constant Field Values
-
CONFIG_SSL_ENABLED
public static final String CONFIG_SSL_ENABLED
The constant CONFIG_SSL_ENABLED.- See Also:
- Constant Field Values
-
CONFIG_SSL_KEY_STORE_FILE
public static final String CONFIG_SSL_KEY_STORE_FILE
The constant CONFIG_SSL_KEY_STORE_FILE.- See Also:
- Constant Field Values
-
CONFIG_SSL_KEY_STORE_PW
public static final String CONFIG_SSL_KEY_STORE_PW
The constant CONFIG_SSL_KEY_STORE_PW.- See Also:
- Constant Field Values
-
CONFIG_MODE_FLATTENING
public static final String CONFIG_MODE_FLATTENING
The constant CONFIG_MODE_FLATTENING.- See Also:
- Constant Field Values
-
CONFIG_RESPONSE_MAX_SIZE_LIMIT
public static final String CONFIG_RESPONSE_MAX_SIZE_LIMIT
The constant CONFIG_RESPONSE_MAX_SIZE_LIMIT.- See Also:
- Constant Field Values
-
CONFIG_RESPONSE_MAX_TIME_LIMIT
public static final String CONFIG_RESPONSE_MAX_TIME_LIMIT
The constant CONFIG_RESPONSE_MAX_TIME_LIMIT.- See Also:
- Constant Field Values
-
CONFIG_CONNECTION_BACK_LOG
public static final String CONFIG_CONNECTION_BACK_LOG
The constant CONFIG_CONNECTION_BACK_LOG.- See Also:
- Constant Field Values
-
CONFIG_CONNECTION_ACTIVE_THREADS
public static final String CONFIG_CONNECTION_ACTIVE_THREADS
The constant CONFIG_CONNECTION_ACTIVE_THREADS.- See Also:
- Constant Field Values
-
CONFIG_DIRECTORY_BACKEND_PERMANENT
public static final String CONFIG_DIRECTORY_BACKEND_PERMANENT
The constant CONFIG_DIRECTORY_BACKEND_PERMANENT.- See Also:
- Constant Field Values
-
CONFIG_DIRECTORY_BACKEND_SESSION
public static final String CONFIG_DIRECTORY_BACKEND_SESSION
The constant CONFIG_DIRECTORY_BACKEND_SESSION.- See Also:
- Constant Field Values
-
CONFIG_ABBREVIATE_SN_ATTRIBUTE
public static final String CONFIG_ABBREVIATE_SN_ATTRIBUTE
The constant CONFIG_ABBREVIATE_SN_ATTRIBUTE.- See Also:
- Constant Field Values
-
CONFIG_ABBREVIATE_GN_ATTRIBUTE
public static final String CONFIG_ABBREVIATE_GN_ATTRIBUTE
The constant CONFIG_ABBREVIATE_GN_ATTRIBUTE.- See Also:
- Constant Field Values
-
CONFIG_BASE_DN_DESCRIPTION
public static final String CONFIG_BASE_DN_DESCRIPTION
The constant CONFIG_BASE_DN_DESCRIPTION.- See Also:
- Constant Field Values
-
CONFIG_BASE_DN_GROUPS_DESCRIPTION
public static final String CONFIG_BASE_DN_GROUPS_DESCRIPTION
The constant CONFIG_BASE_DN_GROUPS_DESCRIPTION.- See Also:
- Constant Field Values
-
CONFIG_BASE_DN_USERS_DESCRIPTION
public static final String CONFIG_BASE_DN_USERS_DESCRIPTION
The constant CONFIG_BASE_DN_USERS_DESCRIPTION.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServerConfiguration
public ServerConfiguration(Properties serverProperties, Properties backendProperties)
Instantiates a new server configuration.- Parameters:
serverProperties- the server propertiesbackendProperties- the backend properties
-
-
Method Detail
-
getBackendProperties
public Properties getBackendProperties()
Gets the backend properties.- Returns:
- the properties
-
getDsCacheDir
public Path getDsCacheDir()
Gets cache dir.- Returns:
- the cache dir
-
getHost
public String getHost()
Gets host.- Returns:
- the host
-
getPort
public int getPort()
Gets port.- Returns:
- the port
-
isSslEnabled
public boolean isSslEnabled()
Is SSL enabled boolean.- Returns:
- the boolean
-
getKeyStoreFile
public Path getKeyStoreFile()
Gets key store file.- Returns:
- the key store file
-
getKeyStorePassword
public String getKeyStorePassword()
Gets key store password.- Returns:
- the key store password
-
isFlatteningEnabled
public boolean isFlatteningEnabled()
Is flattening boolean.- Returns:
- the boolean
-
getResponseMaxSizeLimit
public int getResponseMaxSizeLimit()
Gets the maximum number of entries for responses.- Returns:
- the maximum number of entities
-
getResponseMaxTimeLimit
public int getResponseMaxTimeLimit()
Gets the maximum time in seconds before an operation is aborted.- Returns:
- the maximum number of entities
-
getConnectionBackLog
public int getConnectionBackLog()
Gets the number of incoming requests queued when all the threads are busy.- Returns:
- the maximum number of entities
-
getConnectionActiveThreads
public int getConnectionActiveThreads()
Gets the number of threads to use in the executor to handle the incoming requests.- Returns:
- the maximum number of entities
-
getPermanentDirectoryBackendClasses
public List<String> getPermanentDirectoryBackendClasses()
Gets the defined directory backend classes used as permanent instances.- Returns:
- the list of directory backend classes
-
getSessionDirectoryBackendClasses
public List<String> getSessionDirectoryBackendClasses()
Gets the defined directory backend classes used additional sessions.- Returns:
- the list of directory backend classes
-
isAbbreviateSnAttribute
public boolean isAbbreviateSnAttribute()
Gets the boolean flag for abbreviation of SN attribute.- Returns:
- the boolean
-
isAbbreviateGnAttribute
public boolean isAbbreviateGnAttribute()
Gets the boolean flag for abbreviation of GN attribute.- Returns:
- the boolean
-
getBaseDnDescription
public String getBaseDnDescription()
Gets base DN description.- Returns:
- the base dn description
-
getBaseDnGroupsDescription
public String getBaseDnGroupsDescription()
Gets base DN groups description.- Returns:
- the base dn groups description
-
getBaseDnUsersDescription
public String getBaseDnUsersDescription()
Gets base DN users description.- Returns:
- the base dn users description
-
-