Class KmsKeyStore
-
- All Implemented Interfaces:
public class KmsKeyStoreStores valid KMS key references for the com.adobe.testing.s3mock.S3MockApplication. KMS key references must be added in valid ARN format: "arn:aws:kms:region:acct-id:key/key-id" API Reference
-
-
Constructor Summary
Constructors Constructor Description KmsKeyStore(Map<String, String> kmsKeysIdToARN)KmsKeyStore(Set<String> validKmsKeys)
-
Method Summary
Modifier and Type Method Description final UnitregisterKMSKeyRef(String validKeyRef)Register a valid KMS Key reference. final BooleanvalidateKeyId(String keyId)Validate if the KMS key ID is valid. -
-
Method Detail
-
registerKMSKeyRef
final Unit registerKMSKeyRef(String validKeyRef)
Register a valid KMS Key reference. KMS key references must be added in valid ARN format: "arn:aws:kms:region:acct-id:key/key-id"
- Parameters:
validKeyRef- A KMS Key reference.
-
validateKeyId
final Boolean validateKeyId(String keyId)
Validate if the KMS key ID is valid.
- Parameters:
keyId- A KMS ID reference.- Returns:
Returns true if the key ID is valid for this Mock instance.
-
-
-
-