symphony.bdk.core.config.model.bdk_rsa_key_config.BdkRsaKeyConfig#

class symphony.bdk.core.config.model.bdk_rsa_key_config.BdkRsaKeyConfig(path=None, content='')#

Bases: object

Class containing the bot’s RSA Key configuration

__init__(path=None, content='')#

Methods

__init__([path, content])

get_private_key_content()

Loads the private key content.

is_configured()

"Check if the RSA authentication is configured or not

is_valid()

Check if the RSA configuration is valid.

Attributes

content

rsa private key content string

path

Path to rsa private key file.

property content#

rsa private key content string

get_private_key_content() str#

Loads the private key content. If the path is set, it loads the file content, otherwise it returns the content.

Returns

private key content as string.

is_configured() bool#

“Check if the RSA authentication is configured or not

Returns

true if the RSA authentication is configured

is_valid() bool#

Check if the RSA configuration is valid. If both of private key path and content, the configuration is invalid.

Returns

true if the RSA configuration is valid.

property path#

Path to rsa private key file.