Class SecretCacheVersion
java.lang.Object
com.amazonaws.secretsmanager.caching.cache.SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
com.amazonaws.secretsmanager.caching.cache.SecretCacheVersion
public class SecretCacheVersion
extends SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
The cached secret version item which contains information from the
GetSecretValue AWS Secrets Manager request.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSecretCacheVersion(String secretId, String versionId, software.amazon.awssdk.services.secretsmanager.SecretsManagerClient client, SecretCacheConfiguration config) Construct a new cached version for the secret. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponseExecute the logic to perform the actual refresh of the item.protected software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponsegetSecretValue(software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse gsvResult) Return the cached result from AWS Secrets Manager for GetSecretValue.inthashCode()toString()Methods inherited from class com.amazonaws.secretsmanager.caching.cache.SecretCacheObject
getSecretValue, isRefreshNeeded, refreshNow
-
Constructor Details
-
SecretCacheVersion
public SecretCacheVersion(String secretId, String versionId, software.amazon.awssdk.services.secretsmanager.SecretsManagerClient client, SecretCacheConfiguration config) Construct a new cached version for the secret.- Parameters:
secretId- The secret identifier. This identifier could be the full ARN or the friendly name for the secret.versionId- The version identifier that should be used when requesting the secret value from AWS Secrets Manager.client- The AWS Secrets Manager client to use for requesting the secret.config- The secret cache configuration.
-
-
Method Details
-
equals
- Specified by:
equalsin classSecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
-
hashCode
public int hashCode()- Specified by:
hashCodein classSecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
-
toString
- Specified by:
toStringin classSecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
-
executeRefresh
protected software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse executeRefresh()Execute the logic to perform the actual refresh of the item.- Specified by:
executeRefreshin classSecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>- Returns:
- The result from AWS Secrets Manager for the refresh.
-
getSecretValue
protected software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse getSecretValue(software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse gsvResult) Return the cached result from AWS Secrets Manager for GetSecretValue.- Specified by:
getSecretValuein classSecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>- Parameters:
gsvResult- The result of the Get Secret Value request to AWS Secrets Manager.- Returns:
- The cached GetSecretValue result.
-