Class KmsKeyStore

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit registerKMSKeyRef(String validKeyRef) Register a valid KMS Key reference.
      final Boolean validateKeyId(String keyId) Validate if the KMS key ID is valid.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KmsKeyStore

        KmsKeyStore(Set<String> validKmsKeys)
    • 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.