Package com.hazelcast.config
Class AbstractSymmetricEncryptionConfig<T extends AbstractSymmetricEncryptionConfig>
java.lang.Object
com.hazelcast.config.AbstractSymmetricEncryptionConfig<T>
- Type Parameters:
- T- the type of the configuration class
- Direct Known Subclasses:
- EncryptionAtRestConfig,- SymmetricEncryptionConfig
public abstract class AbstractSymmetricEncryptionConfig<T extends AbstractSymmetricEncryptionConfig>
extends Object
Base class for symmetric encryption configuration classes.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the encryption algorithm.getSalt()Returns the salt.booleanReturns if this configuration is enabled.setAlgorithm(String algorithm) Sets the encryption algorithm, such asAES/CBC/PKCS5Padding.setEnabled(boolean enabled) Enables and disables this configuration.Sets the salt used for encryption.
- 
Field Details- 
DEFAULT_SYMMETRIC_ALGORITHMDefault symmetric encryption algorithm.- See Also:
 
- 
DEFAULT_SYMMETRIC_SALTDefault symmetric encryption salt.- See Also:
 
 
- 
- 
Constructor Details- 
AbstractSymmetricEncryptionConfigpublic AbstractSymmetricEncryptionConfig()
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()Returns if this configuration is enabled.- Returns:
- trueif enabled,- falseotherwise
 
- 
setEnabledEnables and disables this configuration.- Parameters:
- enabled-- trueto enable,- falseto disable
 
- 
getAlgorithmReturns the encryption algorithm.- Returns:
- the encryption algorithm
 
- 
setAlgorithmSets the encryption algorithm, such asAES/CBC/PKCS5Padding.- Parameters:
- algorithm- the encryption algorithm
 
- 
getSaltReturns the salt.- Returns:
- the salt
 
- 
setSaltSets the salt used for encryption.- Parameters:
- salt- the salt
 
 
-