Class BdkAuthenticationConfig
java.lang.Object
com.symphony.bdk.core.config.model.BdkAuthenticationConfig
- Direct Known Subclasses:
BdkBotConfig,BdkExtAppConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BdkCertificateConfigprotected byte[]Deprecated.protected StringDeprecated.protected StringDeprecated.protected BdkRsaKeyConfigprotected byte[]Deprecated.protected StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aBdkCertificateConfiginstance equals tocertificateif specified or a new instance containing deprecated fieldscertificatePath,certificateContentandcertificatePasswordbooleanCheck if both of certificate and RSA authentication is configured.booleanCheck if the certificate authentication is configured or notbooleanCheck if the certificate configuration is valid.booleanCheck if the RSA authentication is configured or notbooleanCheck if the RSA configuration is valid.
-
Field Details
-
privateKeyPath
Deprecated. -
privateKeyContent
Deprecated. -
certificatePath
Deprecated. -
certificateContent
Deprecated. -
certificatePassword
Deprecated. -
privateKey
-
certificate
-
-
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
Returns aBdkCertificateConfiginstance equals tocertificateif specified or a new instance containing deprecated fieldscertificatePath,certificateContentandcertificatePassword- Returns:
- a
BdkCertificateConfiginstance containing certificate authentication information.
-