public class EncryptionConfig
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EncryptionConfig.Builder |
| Modifier and Type | Field and Description |
|---|---|
static AwsWrapperProperty |
AUDIT_LOGGING_ENABLED |
static AwsWrapperProperty |
DATA_KEY_CACHE_ENABLED |
static AwsWrapperProperty |
DATA_KEY_CACHE_EXPIRATION_MS |
static AwsWrapperProperty |
DATA_KEY_CACHE_MAX_SIZE |
static AwsWrapperProperty |
ENCRYPTION_METADATA_SCHEMA |
static AwsWrapperProperty |
KEY_MANAGEMENT_MAX_RETRIES |
static AwsWrapperProperty |
KEY_MANAGEMENT_RETRY_BACKOFF_BASE_MS |
static AwsWrapperProperty |
KMS_REGION |
static AwsWrapperProperty |
METADATA_CACHE_ENABLED |
static AwsWrapperProperty |
METADATA_CACHE_EXPIRATION_MINUTES |
static AwsWrapperProperty |
METADATA_CACHE_REFRESH_INTERVAL_MS |
| Modifier and Type | Method and Description |
|---|---|
static EncryptionConfig.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
static EncryptionConfig |
fromProperties(java.util.Properties properties)
Creates an EncryptionConfig from Properties.
|
int |
getCacheExpirationMinutes() |
java.time.Duration |
getDataKeyCacheExpiration() |
int |
getDataKeyCacheMaxSize() |
SchemaName |
getEncryptionMetadataSchema() |
java.lang.String |
getKmsRegion() |
int |
getMaxRetries() |
java.time.Duration |
getMetadataRefreshInterval() |
java.time.Duration |
getRetryBackoffBase() |
int |
hashCode() |
boolean |
isAuditLoggingEnabled() |
boolean |
isCacheEnabled() |
boolean |
isDataKeyCacheEnabled() |
java.lang.String |
toString() |
void |
validate()
Validates the configuration settings.
|
public static final AwsWrapperProperty KMS_REGION
public static final AwsWrapperProperty METADATA_CACHE_ENABLED
public static final AwsWrapperProperty METADATA_CACHE_EXPIRATION_MINUTES
public static final AwsWrapperProperty KEY_MANAGEMENT_MAX_RETRIES
public static final AwsWrapperProperty KEY_MANAGEMENT_RETRY_BACKOFF_BASE_MS
public static final AwsWrapperProperty AUDIT_LOGGING_ENABLED
public static final AwsWrapperProperty DATA_KEY_CACHE_ENABLED
public static final AwsWrapperProperty DATA_KEY_CACHE_MAX_SIZE
public static final AwsWrapperProperty DATA_KEY_CACHE_EXPIRATION_MS
public static final AwsWrapperProperty METADATA_CACHE_REFRESH_INTERVAL_MS
public static final AwsWrapperProperty ENCRYPTION_METADATA_SCHEMA
public java.lang.String getKmsRegion()
public boolean isCacheEnabled()
public int getCacheExpirationMinutes()
public int getMaxRetries()
public java.time.Duration getRetryBackoffBase()
public boolean isAuditLoggingEnabled()
public boolean isDataKeyCacheEnabled()
public int getDataKeyCacheMaxSize()
public java.time.Duration getDataKeyCacheExpiration()
public java.time.Duration getMetadataRefreshInterval()
public SchemaName getEncryptionMetadataSchema()
public void validate()
java.lang.IllegalArgumentException - if configuration is invalidpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static EncryptionConfig fromProperties(java.util.Properties properties)
properties - Properties containing configuration valuespublic static EncryptionConfig.Builder builder()