Class BdkCertificateConfig
java.lang.Object
com.symphony.bdk.core.config.model.BdkCertificateConfig
-
Constructor Summary
ConstructorsConstructorDescriptionBdkCertificateConfig(String path, byte[] content, String password) BdkCertificateConfig(String path, String password) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns eithercontentif not empty or the content of file located inpath.booleanCheck if the certificate authentication is configured or notbooleanisValid()Check if the certificate configuration is valid.
-
Constructor Details
-
BdkCertificateConfig
public BdkCertificateConfig() -
BdkCertificateConfig
-
BdkCertificateConfig
-
-
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 eithercontentif not empty or the content of file located inpath.- Returns:
- the certificate content as byte array
-