symphony.bdk.core.config.model.bdk_authentication_config.BdkAuthenticationConfig#

class symphony.bdk.core.config.model.bdk_authentication_config.BdkAuthenticationConfig(private_key_config=None, certificate_config=None)#

Bases: object

Class that contains the bot authentication configuration: - either private key configuration for RSA authentication - or certificate configuration for certificate authentication.

__init__(private_key_config=None, certificate_config=None)#

Methods

__init__([private_key_config, ...])

is_authentication_configured()

Check if either RSA or certificate authentication is configured

is_certificate_configuration_valid()

Check of the certificate authentication is valid

is_rsa_authentication_configured()

Check if the RSA authentication is configured

is_rsa_configuration_valid()

Check of the RSA authentication is valid

is_authentication_configured() bool#

Check if either RSA or certificate authentication is configured

Returns

True if RSA or certificate authentication is configured

is_certificate_configuration_valid() bool#

Check of the certificate authentication is valid

If both of certificate key path and content, the configuration is invalid. :return: True if the the certificate key valid

is_rsa_authentication_configured() bool#

Check if the RSA authentication is configured

:return True if the RSA authentication is configured

is_rsa_configuration_valid() bool#

Check of the RSA authentication is valid

If both of private_key path and content, the configuration is invalid. :return: True if the the RSA key valid