Class BdkAuthenticationConfig

java.lang.Object
com.symphony.bdk.core.config.model.BdkAuthenticationConfig
Direct Known Subclasses:
BdkBotConfig, BdkExtAppConfig

@API(status=STABLE) public class BdkAuthenticationConfig extends Object
  • Field Details

  • Constructor Details

    • BdkAuthenticationConfig

      public BdkAuthenticationConfig()
  • Method Details

    • isRsaAuthenticationConfigured

      public boolean isRsaAuthenticationConfigured()
      Check if the RSA authentication is configured or not
      Returns:
      true if the RSA authentication is configured
    • isRsaConfigurationValid

      public boolean isRsaConfigurationValid()
      Check if the RSA configuration is valid. If privateKey field is configured, the privateKeyPath and privateKeyContent should not be configured. If both of private key path and content, the configuration is invalid.
      Returns:
      true if the RSA configuration is invalid.
    • isCertificateAuthenticationConfigured

      public boolean isCertificateAuthenticationConfigured()
      Check if the certificate authentication is configured or not
      Returns:
      true if the certificate authentication is configured
    • isCertificateConfigurationValid

      public boolean isCertificateConfigurationValid()
      Check if the certificate configuration is valid. If certificate field is configured, the certificatePath and certificateContent should not be configured. If both of certificate path and content, the configuration is invalid.
      Returns:
      true if the certificate configuration is invalid.
    • isBothCertificateAndRsaConfigured

      public boolean isBothCertificateAndRsaConfigured()
      Check if both of certificate and RSA authentication is configured.
      Returns:
      true if both of certificate and RSA authentication is configured.
    • getCertificateConfig

      public BdkCertificateConfig getCertificateConfig()
      Returns a BdkCertificateConfig instance equals to certificate if specified or a new instance containing deprecated fields certificatePath, certificateContent and certificatePassword
      Returns:
      a BdkCertificateConfig instance containing certificate authentication information.