Class BdkCertificateConfig

java.lang.Object
com.symphony.bdk.core.config.model.BdkCertificateConfig

@API(status=STABLE) public class BdkCertificateConfig extends Object
  • Constructor Details

    • BdkCertificateConfig

      public BdkCertificateConfig()
    • BdkCertificateConfig

      public BdkCertificateConfig(String path, String password)
    • BdkCertificateConfig

      public BdkCertificateConfig(String path, byte[] content, String password)
  • Method Details

    • isConfigured

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

      public boolean isValid()
      Check if the certificate configuration is valid. If both of certificate path and content, the configuration is invalid.
      Returns:
      true if the certificate configuration is invalid.
    • getCertificateBytes

      public byte[] getCertificateBytes()
      Returns either content if not empty or the content of file located in path.
      Returns:
      the certificate content as byte array