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 Summary
Fields Modifier and Type Field Description static String
DEFAULT_SYMMETRIC_ALGORITHM
Default symmetric encryption algorithm.static String
DEFAULT_SYMMETRIC_SALT
Default symmetric encryption salt. -
Constructor Summary
Constructors Constructor Description AbstractSymmetricEncryptionConfig()
-
Method Summary
Modifier and Type Method Description String
getAlgorithm()
Returns the encryption algorithm.String
getSalt()
Returns the salt.boolean
isEnabled()
Returns if this configuration is enabled.T
setAlgorithm(String algorithm)
Sets the encryption algorithm, such asAES/CBC/PKCS5Padding
.T
setEnabled(boolean enabled)
Enables and disables this configuration.T
setSalt(String salt)
Sets the salt used for encryption.
-
Field Details
-
DEFAULT_SYMMETRIC_ALGORITHM
Default symmetric encryption algorithm.- See Also:
- Constant Field Values
-
DEFAULT_SYMMETRIC_SALT
Default symmetric encryption salt.- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractSymmetricEncryptionConfig
public AbstractSymmetricEncryptionConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns if this configuration is enabled.- Returns:
true
if enabled,false
otherwise
-
setEnabled
Enables and disables this configuration.- Parameters:
enabled
-true
to enable,false
to disable
-
getAlgorithm
Returns the encryption algorithm.- Returns:
- the encryption algorithm
-
setAlgorithm
Sets the encryption algorithm, such asAES/CBC/PKCS5Padding
.- Parameters:
algorithm
- the encryption algorithm
-
getSalt
Returns the salt.- Returns:
- the salt
-
setSalt
Sets the salt used for encryption.- Parameters:
salt
- the salt
-