Utility class to read kanzi connect specific connection configuration file. More...
Public Member Functions | |
| ConfigurationReader (String serverName) | |
| Constructor. | |
| ConfigurationReader (String serverName, AssetManager assetManager) | |
| Constructor. | |
| boolean | certificatesValid () |
| Checks that all certificates and private keys have valid content. | |
| int | countIP () |
| Retrieves amount of IP Address candidates. | |
| String | getClientCertificateContent () |
| Retrieve Client certificate file content. | |
| String | getClientPrivateKeyContent () |
| Retrieve client private key content. | |
| String | getConnectIdentifier () |
| Retrieve connection identifier. | |
| StringMap | getConnectionParameters () |
| Retrieve connection parameters in a string-map can be fed to client connector directly. | |
| String | getIP () |
| Retrieve IP address. | |
| String | getIPAt (int index) |
| Retrieve IP address at given position. | |
| String | getPort () |
| Retrieve port number. | |
| String | getProtocol () |
| Retrieve protocol name. | |
| String | getServerCACertificateContent () |
| Retrieve Server CA certificate content (textual) | |
| void | refresh () |
| Re-Read the configuration. | |
| boolean | valid () |
| Checks whether the configuration is valid. | |
Static Public Member Functions | |
| static StringMap | getConnectionParametersStatic (String serverName) |
| Static convenience method to access connection parameters. | |
| static StringMap | getConnectionParametersStatic (String serverName, AssetManager assetManager) |
| Static convenience method to access connection parameters. | |
Utility class to read kanzi connect specific connection configuration file.
| ConfigurationReader | ( | String | serverName | ) |
Constructor.
Will try to read the configuration file during construction.
| ConfigurationReader | ( | String | serverName, |
| AssetManager | assetManager ) |
Constructor.
Will try to read the configuration file during construction.
| boolean certificatesValid | ( | ) |
Checks that all certificates and private keys have valid content.
| int countIP | ( | ) |
Retrieves amount of IP Address candidates.
| String getClientCertificateContent | ( | ) |
Retrieve Client certificate file content.
| String getClientPrivateKeyContent | ( | ) |
Retrieve client private key content.
| String getConnectIdentifier | ( | ) |
Retrieve connection identifier.
| StringMap getConnectionParameters | ( | ) |
Retrieve connection parameters in a string-map can be fed to client connector directly.
|
static |
Static convenience method to access connection parameters.
|
static |
Static convenience method to access connection parameters.
| String getIP | ( | ) |
Retrieve IP address.
If none is defined, returns 127.0.0.1
| String getIPAt | ( | int | index | ) |
Retrieve IP address at given position.
| index | the position from 0...countIP()-1 |
| String getPort | ( | ) |
Retrieve port number.
| String getProtocol | ( | ) |
Retrieve protocol name.
E.g. "connect.bearer.tcp"
| String getServerCACertificateContent | ( | ) |
Retrieve Server CA certificate content (textual)
| boolean valid | ( | ) |
Checks whether the configuration is valid.