T - the type of the configuration classpublic abstract class AbstractSymmetricEncryptionConfig<T extends AbstractSymmetricEncryptionConfig> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SYMMETRIC_ALGORITHM
Default symmetric encryption algorithm.
|
static String |
DEFAULT_SYMMETRIC_SALT
Default symmetric encryption salt.
|
| Constructor and Description |
|---|
AbstractSymmetricEncryptionConfig() |
| Modifier and Type | Method and 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 as
AES/CBC/PKCS5Padding. |
T |
setEnabled(boolean enabled)
Enables and disables this configuration.
|
T |
setSalt(String salt)
Sets the salt used for encryption.
|
public static final String DEFAULT_SYMMETRIC_ALGORITHM
public static final String DEFAULT_SYMMETRIC_SALT
public boolean isEnabled()
true if enabled, false otherwisepublic T setEnabled(boolean enabled)
enabled - true to enable, false to disablepublic String getAlgorithm()
public T setAlgorithm(String algorithm)
AES/CBC/PKCS5Padding.algorithm - the encryption algorithmpublic String getSalt()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.